wenliming 2 gadi atpakaļ
vecāks
revīzija
97fb236f93
2 mainītis faili ar 6 papildinājumiem un 8 dzēšanām
  1. 1 6
      src/logic/background/denet.js
  2. 5 2
      src/view/popup/currency-detail.vue

+ 1 - 6
src/logic/background/denet.js

@@ -7,13 +7,8 @@ export const closeAchPayNoticeHandler = async () => {
         chrome.tabs.remove(
             res.id, () => {
                 getChromeStorage('achPayInfo', (result) => {
-                    let {tab, form} = result || {};
+                    let {tab} = result || {};
                     chrome.storage.local.remove("achPayInfo");
-                    if(form == 'popupPage') {
-                        setChromeStorage({ achPayData : JSON.stringify({
-                            form: 'popupPage'
-                        })});
-                    }
                     if(tab) {
                         chrome.tabs.highlight({ windowId: tab.windowId, tabs: tab.index })
                     }

+ 5 - 2
src/view/popup/currency-detail.vue

@@ -290,11 +290,14 @@ const confirmDeposit = (params) => {
   depositDesc.value = '';
 
   let achPayInfo = {
-      amountValue: finalAmountData.value.finalAmountValue,
-      form: 'popupPage'
+      amountValue: finalAmountData.value.finalAmountValue
   };
   let guideUrl = chrome.runtime.getURL('/iframe/ach-cashier.html');
   setChromeStorage({ achPayInfo : JSON.stringify(achPayInfo)});
+  setChromeStorage({ achPayData : JSON.stringify({
+    form: 'popupPage'
+  })});
+
   chrome.tabs.create({
     url: guideUrl
   });