Pārlūkot izejas kodu

[bug][open tab]

zhangwei 2 gadi atpakaļ
vecāks
revīzija
f72d483a65
1 mainītis faili ar 14 papildinājumiem un 15 dzēšanām
  1. 14 15
      src/view/iframe/red-packet/red-packet.vue

+ 14 - 15
src/view/iframe/red-packet/red-packet.vue

@@ -873,21 +873,20 @@ const doTaskReport = (req, sender) => {
     case 'follow':
       event_type = 1
       chrome.tabs.remove(sender.tab.id)
-      for (let i = 0; i < follow_open_tabs.length; i++) {
-        if (follow_open_tabs[i].id == sender.tab.id) {
-          follow_open_tabs.splice(i, 1)
-          break
-        }
-      }
-
-      chrome.tabs.getCurrent((tab) => {
-        if (follow_open_tabs.length > 0) {
-          tab_index = follow_open_tabs[follow_open_tabs.length - 1].index
-        } else {
-          tab_index = tab.index
-        }
-        chrome.tabs.highlight({ windowId: tab.windowId, tabs: tab_index })
-      })
+      // for (let i = 0; i < follow_open_tabs.length; i++) {
+      //   if (follow_open_tabs[i].id == sender.tab.id) {
+      //     follow_open_tabs.splice(i, 1)
+      //     break
+      //   }
+      // }
+      // chrome.tabs.getCurrent((tab) => {
+      //   if (follow_open_tabs.length > 0) {
+      //     tab_index = follow_open_tabs[follow_open_tabs.length - 1].index
+      //   } else {
+      //     tab_index = tab.index
+      //   }
+      //   chrome.tabs.highlight({ windowId: tab.windowId, tabs: tab_index })
+      // })
       let has_no_finished = false
       state.detail.taskCondition[0].relatedUsers.forEach((item) => {
         if (follow_name == item.name) {