From c4d9e7a20dac267c5496ad3586c5053be279a17a Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 26 四月 2024 20:09:59 +0800 Subject: [PATCH] 添加action,表单组件 --- Source/ProjectWeb/src/api/base/actions.js | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Source/ProjectWeb/src/api/base/actions.js b/Source/ProjectWeb/src/api/base/actions.js index b60e7f3..d704ed5 100644 --- a/Source/ProjectWeb/src/api/base/actions.js +++ b/Source/ProjectWeb/src/api/base/actions.js @@ -1,19 +1,18 @@ import request from '@/router/axios'; // 鏂板 -export const addSave = (url,method,data) => { - url='/api/'+(url||"uiDataController/addSave"); +export const addSave = (data,url,method) => { return request({ - url: url, + url: url || "/api/uiDataController/addSave", method: method || 'post', data }) } // 淇敼 -export const edit = (data) => { +export const editSave = (data,url,method) => { return request({ - url: '/api/uiDataController/edit-save', - method: 'put', + url: url || '/api/uiDataController/edit-save', + method: method || 'put', data }) } -- Gitblit v1.9.3