jihuaqiang há 2 anos atrás
pai
commit
eb57ada771
2 ficheiros alterados com 4 adições e 2 exclusões
  1. 2 1
      src/pages/tab-group.vue
  2. 2 1
      src/uilts/chromeExtension.js

+ 2 - 1
src/pages/tab-group.vue

@@ -206,6 +206,7 @@ const getListData = () => {
 }
 }
 
 
 const initData = () => {
 const initData = () => {
+    loading.value = true;
     let { windowLocation } = JSON.parse(getQueryString('params'));
     let { windowLocation } = JSON.parse(getQueryString('params'));
     if (windowLocation.pathname) {
     if (windowLocation.pathname) {
         let arr = windowLocation.pathname.split('/');
         let arr = windowLocation.pathname.split('/');
@@ -220,7 +221,7 @@ const initData = () => {
                     if (res.code == 0) {
                     if (res.code == 0) {
                         groupInfo = res.data || {};
                         groupInfo = res.data || {};
                         if (!groupInfo.nftGroupId) return;
                         if (!groupInfo.nftGroupId) return;
-                        loading.value = true;
+                        // loading.value = true;
                         getListData()
                         getListData()
                     }
                     }
                 })
                 })

+ 2 - 1
src/uilts/chromeExtension.js

@@ -39,7 +39,8 @@ export async function getChromeStorageFromExtension(key = '') {
             data: {
             data: {
                 iframeID,//用于告诉父窗口会传消息给哪个iframe
                 iframeID,//用于告诉父窗口会传消息给哪个iframe
                 key,// storage key
                 key,// storage key
-                messageID: guid()// 唯一的ID,用于标记回调函数
+                messageID: guid(), // 唯一的ID,用于标记回调函数
+                overTime: 200
             },
             },
             callback: (data) => {
             callback: (data) => {
                 res(data)
                 res(data)