feat: 🚀 切换站点清空缓存
This commit is contained in:
@@ -32,6 +32,7 @@ const { keepAliveName } = storeToRefs(keepAliveStore);
|
||||
const isRouterShow = ref(true);
|
||||
const refreshCurrentPage = (val: boolean) => {
|
||||
isRouterShow.value = val;
|
||||
keepAliveStore.setKeepAliveName([]);
|
||||
};
|
||||
|
||||
provide("refresh", refreshCurrentPage);
|
||||
|
||||
Reference in New Issue
Block a user