浏览代码

[edit] fix

wenliming 2 年之前
父节点
当前提交
10a38207dc
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/view/popup/components/tabbar.vue

+ 2 - 1
src/view/popup/components/tabbar.vue

@@ -54,6 +54,7 @@ watch(
     () => props.userInfo,
     (newVal) => {
         getNFTListMine();
+        setMessageCount();
     },
     {
         deep: true
@@ -106,6 +107,7 @@ let NFTReqParams = {
 const emits = defineEmits(["tabbarClick"]);
 
 const tabbarHandler = (params, index) => {
+    unReadCountTask.value = 0;
     setMessageCount();
     currentTab.value.index = index;
     currentTab.value.path = params.path;
@@ -128,7 +130,6 @@ const setActiveTab = () => {
 };
 
 const getNFTListMine = () => {
-    console.log(props.userInfo.accessToken)
     if(!props.userInfo.accessToken) return;
     nftListMine({
         params: NFTReqParams.params,