perf: 同步完整版代码

This commit is contained in:
xiaoxian521
2022-02-28 22:33:56 +08:00
parent eb9d1e8238
commit aea8605a60
4 changed files with 23 additions and 1 deletions

View File

@@ -45,6 +45,13 @@ watch(
}
);
watch(
() => route.path,
() => {
menuSelect(route.path, routers);
}
);
function translationCh() {
instance.locale = { locale: "zh" };
locale.value = "zh";

View File

@@ -49,7 +49,10 @@ onBeforeMount(() => {
watch(
() => route.path,
() => getSubMenuData(route.path)
() => {
getSubMenuData(route.path);
menuSelect(route.path, routers);
}
);
</script>