diff --git a/src/apis/system/dict.ts b/src/apis/system/dict.ts index 3960ac2..08e418e 100644 --- a/src/apis/system/dict.ts +++ b/src/apis/system/dict.ts @@ -30,6 +30,11 @@ export function deleteDict(id: string) { return http.del(`${BASE_URL}/${id}`) } +/** @desc 清除字典缓存 */ +export function clearDictCache(code: string) { + return http.del(`${BASE_URL}/cache/${code}`) +} + /** @desc 查询字典项列表 */ export function listDictItem(query: T.DictItemPageQuery) { return http.get>(`${BASE_URL}/item`, query) diff --git a/src/apis/system/menu.ts b/src/apis/system/menu.ts index 5702f6c..c5a0b09 100644 --- a/src/apis/system/menu.ts +++ b/src/apis/system/menu.ts @@ -29,3 +29,8 @@ export function updateMenu(data: any, id: string) { export function deleteMenu(id: string) { return http.del(`${BASE_URL}/${id}`) } + +/** @desc 清除菜单缓存 */ +export function clearMenuCache() { + return http.del(`${BASE_URL}/cache`) +} diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 42a1de3..ec3139f 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -1,10 +1,5 @@