[fix] 清除缓存
This commit is contained in:
parent
0d6946206f
commit
97978b3cb6
21
src/layout/default/components/header/cache.vue
Normal file
21
src/layout/default/components/header/cache.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div class="full-screen h-full cursor-pointer flex items-center px-2" @click="handleClean">
|
||||
<icon :size="18" name="el-icon-delete" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="cache">
|
||||
|
||||
// 清理缓存
|
||||
import feedback from "@/utils/feedback";
|
||||
import {systemCacheClear} from "@/api/setting/system";
|
||||
|
||||
const handleClean = async () => {
|
||||
await feedback.confirm('确认清除系统缓存?')
|
||||
await systemCacheClear()
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -13,6 +13,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="navbar-item" v-if="!isMobile">
|
||||
<cache />
|
||||
</div>
|
||||
<div class="navbar-item" v-if="!isMobile">
|
||||
<full-screen />
|
||||
</div>
|
||||
@ -37,6 +40,7 @@ import FullScreen from './full-screen.vue'
|
||||
import UserDropDown from './user-drop-down.vue'
|
||||
import Setting from '../setting/index.vue'
|
||||
import MultipleTabs from './multiple-tabs.vue'
|
||||
import Cache from './cache.vue'
|
||||
|
||||
import useSettingStore from '@/stores/modules/setting'
|
||||
const appStore = useAppStore()
|
||||
|
Loading…
x
Reference in New Issue
Block a user