From 65c54e73260d22926e175e337d72e6a9acfddd64 Mon Sep 17 00:00:00 2001 From: sendo <172933527@qq.com> Date: 星期三, 17 九月 2025 18:24:56 +0800 Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/~yxh/smartor-web --- 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