Browse Source

no message

A\An 2 years ago
parent
commit
4fb24eba0a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/view/popup/tabbar-page/index.vue

+ 5 - 1
src/view/popup/tabbar-page/index.vue

@@ -18,10 +18,11 @@
 </template>
 
 <script setup>
-import { onMounted, ref } from "vue";
+import { onMounted, ref, nextTick } from "vue";
 import { getChromeStorage } from "@/uilts/chromeExtension";
 import { setStorage, getStorage } from "@/uilts/help";
 import Report from "@/log-center/log";
+import router from "@/router/popup.js";
 
 import TopBar from "@/view/popup/components/top-bar.vue";
 import Tabbar from "@/view/popup/components/tabbar.vue";
@@ -92,6 +93,9 @@ const callEventPageMethod = (actionType, data, callback) => {
 };
 
 onMounted(() => {
+  nextTick(() => {
+    onTabbarHandler(router.currentRoute.value);
+  })
   getUserInfo();
 });
 </script>