From eeddc808a8d6428bfd1c2d6e21e4a71f5e9bdbef Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期五, 13 十二月 2024 10:41:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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