提交 46641988 authored 作者: lidongxu's avatar lidongxu

fix(api/monitor/cache): 解决打包过滤代码时,有个 getCache 找不到问题

同上
上级 8925a60d
......@@ -6,6 +6,7 @@ export * from './bi/competitor'
export * from './bi/product'
export * from './bi/sale'
export * from './bi/store'
export * from './monitor/cache'
export * from './monitor/job'
export * from './monitor/jobLog'
export * from './monitor/online'
......
import request from '@/utils/request'
// 查询缓存详细
export function getCache() {
return request({
url: '/monitor/cache',
method: 'get'
})
}
// 查询缓存名称列表
export function listCacheName() {
return request({
url: '/monitor/cache/getNames',
method: 'get'
})
}
// 查询缓存键名列表
export function listCacheKey(cacheName) {
return request({
url: '/monitor/cache/getKeys/' + cacheName,
method: 'get'
})
}
// 查询缓存内容
export function getCacheValue(cacheName, cacheKey) {
return request({
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey,
method: 'get'
})
}
// 清理指定名称缓存
export function clearCacheName(cacheName) {
return request({
url: '/monitor/cache/clearCacheName/' + cacheName,
method: 'delete'
})
}
// 清理指定键名缓存
export function clearCacheKey(cacheKey) {
return request({
url: '/monitor/cache/clearCacheKey/' + cacheKey,
method: 'delete'
})
}
// 清理全部缓存
export function clearCacheAll() {
return request({
url: '/monitor/cache/clearCacheAll',
method: 'delete'
})
}
......@@ -44,7 +44,7 @@ export function delType(dictId) {
}
// 刷新字典缓存
export function refreshCache() {
export function refreshDictCache() {
return request({
url: '/system/dict/type/refreshCache',
method: 'delete'
......
......@@ -128,7 +128,7 @@ export function updateAuthRole(data) {
}
// 查询部门下拉树结构
export function deptTreeSelect() {
export function deptTreeSelectList() {
return request({
url: '/system/user/deptTree',
method: 'get'
......
......@@ -173,7 +173,7 @@
<script setup name="Dict">
import useDictStore from '@/store/modules/dict'
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api";
import { listType, getType, delType, addType, updateType, refreshDictCache as refreshCache } from "@/api";
const { proxy } = getCurrentInstance();
const { sys_normal_disable } = proxy.useDict("sys_normal_disable");
......
......@@ -216,7 +216,7 @@
<script setup name="User">
import { getToken } from "@/utils/auth";
import useAppStore from '@/store/modules/app'
import { changeUserStatus, listUser, resetUserPwd, delUser, getUser, updateUser, addUser, deptTreeSelect } from "@/api";
import { changeUserStatus, listUser, resetUserPwd, delUser, getUser, updateUser, addUser, deptTreeSelectList } from "@/api";
import { Splitpanes, Pane } from "splitpanes"
import "splitpanes/dist/splitpanes.css"
......@@ -311,7 +311,7 @@ function getList() {
/** 查询部门下拉树结构 */
function getDeptTree() {
deptTreeSelect().then(response => {
deptTreeSelectList().then(response => {
deptOptions.value = response.data;
enabledDeptOptions.value = filterDisabledDept(JSON.parse(JSON.stringify(response.data)));
});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论