feat : 刷新缓存
This commit is contained in:
@@ -220,7 +220,7 @@
|
||||
import {getDictTypeList, getDictTypeDetails, addDictType, editDictType, delDictType,refreshDict} from "@/api/system/dict-type";
|
||||
import {getDictDataList, addDictData, delDictData, editDictData, getDictDataDetails} from "@/api/system/dict-data";
|
||||
import {Search, Refresh, Delete, Plus, Edit, Download} from "@element-plus/icons-vue";
|
||||
import {ElMessage, ElMessageBox} from "element-plus";
|
||||
import {ElMessage, ElMessageBox, ElNotification} from "element-plus";
|
||||
import {useCacheStore} from "@/stores/cache.js";
|
||||
import Paging from "@/components/pagination/index.vue";
|
||||
import {downLoadExcel} from "@/utils/downloadZip";
|
||||
@@ -398,6 +398,11 @@ const handleAddType = () => {
|
||||
//刷新缓存
|
||||
const handleRefreshCache=()=>{
|
||||
refreshDict().then(res=>{
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: res.msg,
|
||||
type: res.code === 1000 ? 'success' : 'error'
|
||||
})
|
||||
})
|
||||
}
|
||||
//修改字典类型
|
||||
|
||||
Reference in New Issue
Block a user