fix: 混合模式一些细节

Former-commit-id: 5f51df75efed158c8adb9a9ad0cb92d9e26e3b6c
This commit is contained in:
april
2023-08-15 15:32:40 +08:00
parent e03d73bb48
commit beee3e40a5
4 changed files with 58 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import variables from "@/styles/variables.module.scss";
import { useAppStore } from "@/store/modules/app";
import { translateRouteTitleI18n } from "@/utils/i18n";
const appStore = useAppStore();
const tPath = ref();
const activePath = computed(() => appStore.activeTopMenu);
const selectMenu = (index: string) => {
appStore.changeTopActive(index);
};
@@ -18,7 +18,7 @@ onMounted(() => {
<el-scrollbar>
<el-menu
mode="horizontal"
:default-active="tPath"
:default-active="activePath"
:background-color="variables.menuBg"
:text-color="variables.menuText"
:active-text-color="variables.menuActiveText"