From 0ccd9ca4b3a0ac1474c8cb9445d8b669654c7a81 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 28 十月 2024 17:37:59 +0800
Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat-ui-vue3

---
 src/api/model/mpk/mpk.ts |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/api/model/mpk/mpk.ts b/src/api/model/mpk/mpk.ts
index 44800d0..653cf8b 100644
--- a/src/api/model/mpk/mpk.ts
+++ b/src/api/model/mpk/mpk.ts
@@ -10,7 +10,8 @@
   pyModule: string
   remark?: string
   modelMethods: object
-  filePath: string
+  filePath: string,
+  menuAndGroup: any
 }
 
 export const getPage = async (params: PageParam) => {
@@ -38,9 +39,13 @@
 }
 
 export const modelRun = (params) => {
-  return request.post({ url: '/model/mpk/api/run', data: params })
+  return request.post({ url: '/model/mpk/api/test', data: params })
 }
 
 export const list = () => {
   return request.get({ url: '/model/mpk/file/list'})
 }
+
+export const publish = (params) => {
+  return request.post({ url: '/model/mpk/file/publish', data: params})
+}

--
Gitblit v1.9.3