fix: 解决关闭菜单选项时刷新跳转到概览页的问题 (#4939)
Some checks failed
Build / SonarCloud (push) Failing after 4s
Build Test / build-linux-binary (push) Failing after -3m57s
sync2gitee / repo-sync (push) Failing after 8s

This commit is contained in:
ssongliu 2024-05-09 15:44:23 +08:00 committed by GitHub
parent 1090df3703
commit e799d1cc49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,11 +41,6 @@ const { switchDark } = useTheme();
let timer: NodeJS.Timer | null = null;
onMounted(() => {
if (!tabsStore.activeTabPath) {
handleMenuClick('/');
}
});
const classObj = computed(() => {
return {
fullScreen: globalStore.isFullScreen,
@ -163,6 +158,10 @@ onBeforeUnmount(() => {
timer = null;
});
onMounted(() => {
if (globalStore.openMenuTabs && !tabsStore.activeTabPath) {
handleMenuClick('/');
}
loadStatus();
initFavicon();
loadDataFromDB();