Parcourir la source

fix: 登陆刷新大会员页面

zhangyuhan il y a 4 ans
Parent
commit
05b9c56adc
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/web/templates/big-member/pc/page_index.html

+ 4 - 2
src/web/templates/big-member/pc/page_index.html

@@ -1014,9 +1014,11 @@
         try {
             var injectLogic = logic
             logic = function (data, num) {
-                if (data.result === 'ok' && window.waitGoBuy) {
+                if (data.result === 'ok') {
+                  if (window.waitGoBuy) {
                     sessionStorage.setItem('pc_big_buy_type', window.waitGoBuy)
-                    location.reload()
+                  }
+                  location.reload()
                 }
                 injectLogic(data, num)
             }