Merge remote-tracking branch 'origin/master'

This commit is contained in:
caozehui
2024-12-17 14:08:35 +08:00

View File

@@ -64,9 +64,14 @@ onMounted(() => {
});
const handelOpen = async (item: string) => {
await authStore.setShowMenu();
modeStore.setCurrentMode(item); // 将模式code存入 store
router.push({ path: "/home/index" });
await authStore.setShowMenu();
modeStore.setCurrentMode(item); // 将模式code存入 store
if (router.currentRoute.value.path === '/home/index') {
// 强制刷新页面
window.location.reload();
} else {
router.push({ path: '/home/index' });
}
};
</script>