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