优化字典数据使用store存取

This commit is contained in:
RuoYi
2022-07-20 19:38:44 +08:00
parent 6c19bfbd90
commit cafff38a6e
5 changed files with 75 additions and 6 deletions

View File

@@ -182,6 +182,7 @@
</template>
<script setup name="Dict">
import useDictStore from '@/store/modules/dict'
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
const { proxy } = getCurrentInstance();
@@ -313,6 +314,7 @@ function handleExport() {
function handleRefreshCache() {
refreshCache().then(() => {
proxy.$modal.msgSuccess("刷新成功");
useDictStore().cleanDict();
});
}