From 778f36da39618e73d362f70de5fd77be57b34fb7 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 31 十二月 2024 14:52:53 +0800 Subject: [PATCH] 调度方案配置界面优化 --- src/api/model/mpk/project.ts | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/model/mpk/project.ts b/src/api/model/mpk/project.ts index 514b05b..33f1cf6 100644 --- a/src/api/model/mpk/project.ts +++ b/src/api/model/mpk/project.ts @@ -1,6 +1,6 @@ import request from '@/config/axios' -export const getPage = async (params: PageParam) => { +export const getPage = async (params) => { return await request.get({ url: '/model/mpk/project/page', params }) } @@ -21,13 +21,14 @@ } export const packageProject = (params) => { - return request.download({ url: '/model/mpk/file/packageModel', params }) + // 超时时间两分钟 + return request.download({ url: '/model/mpk/file/packageModel', params, timeout: 2 * 60 * 1000 }) } export const list = () => { return request.get({ url: '/model/mpk/project/list'}) } -export const getProjectModel = async (params: PageParam) => { +export const getProjectModel = async (params) => { return await request.get({ url: '/model/mpk/project/getProjectModel', params }) } -- Gitblit v1.9.3