diff --git a/src/components/registerGlobComp.ts b/src/components/registerGlobComp.ts index 39a61654..45f46998 100644 --- a/src/components/registerGlobComp.ts +++ b/src/components/registerGlobComp.ts @@ -44,6 +44,7 @@ import { Space, Statistic, Cascader, + Transfer, } from 'ant-design-vue' export function registerGlobComp(app: App) { @@ -90,6 +91,7 @@ export function registerGlobComp(app: App) { app.use(Form) app.use(Spin) app.use(Dropdown) + app.use(Transfer) app.use(Input) app.use(Statistic) } diff --git a/src/views/baseapi/cache/CacheClear.api.ts b/src/views/baseapi/cache/CacheClear.api.ts new file mode 100644 index 00000000..c5b69514 --- /dev/null +++ b/src/views/baseapi/cache/CacheClear.api.ts @@ -0,0 +1,16 @@ +import { defHttp } from '@/utils/http/axios' +import { Result } from '#/axios' + +/** + * 查询所有缓存前缀 + */ +export function getCachePrefix() { + return defHttp.get>({ url: '/cache/clear/getCachePrefix' }) +} + +/** + * 清除指定前缀的缓存 + */ +export function clearCacheByPrefix(params) { + return defHttp.post>({ url: '/cache/clear/prefix', data: params }) +} diff --git a/src/views/baseapi/cache/CacheClear.vue b/src/views/baseapi/cache/CacheClear.vue new file mode 100644 index 00000000..701b0ad6 --- /dev/null +++ b/src/views/baseapi/cache/CacheClear.vue @@ -0,0 +1,71 @@ + +