修改公共配置字典

This commit is contained in:
wuweihua
2026-09-08 10:51:20 +08:00
parent 647be14d66
commit 38796d8683
25 changed files with 389 additions and 80 deletions
+4 -1
View File
@@ -114,6 +114,7 @@
import DictDataDrawer from './detail'
import useDictStore from '@/store/modules/dict'
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type"
import { getDictAll } from "@/api/system/dict/data"
const { proxy } = getCurrentInstance()
const { sys_normal_disable } = useDict("sys_normal_disable")
@@ -248,8 +249,10 @@ function handleExport() {
/** 刷新缓存按钮操作 */
function handleRefreshCache() {
refreshCache().then(() => {
return getDictAll()
}).then(res => {
useDictStore().setDictMap(res.data)
proxy.$modal.msgSuccess("刷新成功")
useDictStore().cleanDict()
})
}
</script>