修改公共配置字典
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user