From b73b5dd97cbda40d0584f579ed9f65f4fcffe23f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 31 三月 2025 15:33:02 +0800
Subject: [PATCH] 测试完成
---
src/api/system/dict/type.js | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/api/system/dict/type.js b/src/api/system/dict/type.js
index a7a6e01..b76e842 100644
--- a/src/api/system/dict/type.js
+++ b/src/api/system/dict/type.js
@@ -20,7 +20,7 @@
// 鏂板瀛楀吀绫诲瀷
export function addType(data) {
return request({
- url: '/system/dict/type',
+ url: '/system/dict/type/add',
method: 'post',
data: data
})
@@ -29,8 +29,8 @@
// 淇敼瀛楀吀绫诲瀷
export function updateType(data) {
return request({
- url: '/system/dict/type',
- method: 'put',
+ url: '/system/dict/type/edit',
+ method: 'post',
data: data
})
}
@@ -38,16 +38,16 @@
// 鍒犻櫎瀛楀吀绫诲瀷
export function delType(dictId) {
return request({
- url: '/system/dict/type/' + dictId,
- method: 'delete'
+ url: '/system/dict/type/remove/' + dictId,
+ method: 'get'
})
}
// 鍒锋柊瀛楀吀缂撳瓨
export function refreshCache() {
return request({
- url: '/system/dict/type/refreshCache',
- method: 'delete'
+ url: '/system/dict/type/refreshCache/remove',
+ method: 'get'
})
}
@@ -57,4 +57,4 @@
url: '/system/dict/type/optionselect',
method: 'get'
})
-}
\ No newline at end of file
+}
--
Gitblit v1.9.3