From e581891072a36f0d0f7f57246366ded965e2ab8a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期四, 25 一月 2024 10:11:17 +0800
Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复
---
Source/UBCS-WEB/src/api/system/menu.js | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/api/system/menu.js b/Source/UBCS-WEB/src/api/system/menu.js
index f60ce49..febcde5 100644
--- a/Source/UBCS-WEB/src/api/system/menu.js
+++ b/Source/UBCS-WEB/src/api/system/menu.js
@@ -1,4 +1,4 @@
-import request from '@/router/axios';
+ import request from '@/router/axios';
export const getList = (current, size, params) => {
return request({
@@ -23,13 +23,25 @@
})
}
-export const getLazyMenuList = (parentId, params) => {
+export const getLazyMenuList = (parentId, params, current, size) => {
return request({
url: '/api/ubcs-system/menu/lazy-menu-list',
method: 'get',
params: {
...params,
- parentId
+ parentId,
+ current,
+ size,
+ }
+ })
+}
+
+export const getButtonByParentCode = (params) => {
+ return request({
+ url: '/api/ubcs-system/menu/getButtonByParentCode',
+ method: 'get',
+ params: {
+ ...params
}
})
}
@@ -104,3 +116,9 @@
topMenuId,
}
});
+
+export const cloneMenuButton = (data) => request({
+ url: '/api/ubcs-system/menu/cloneMenuButton',
+ method: 'post',
+ data: data
+});
\ No newline at end of file
--
Gitblit v1.9.3