瀏覽代碼

fix: 登陆刷新大会员页面

zhangyuhan 4 年之前
父節點
當前提交
05b9c56adc
共有 1 個文件被更改,包括 4 次插入2 次删除
  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)
             }