fix: 路由变化添加标签页 (#243)

This commit is contained in:
一万 2022-04-18 10:27:22 +08:00 committed by GitHub
parent 42b7e36e0d
commit db1f26e9da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

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

View File

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