Ver Fonte

fix: 修复微信跳转客服返回2次问题

cuiyalong há 2 anos atrás
pai
commit
c97cd51d18
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/web/templates/big-member/wx/page_customer.html

+ 1 - 1
src/web/templates/big-member/wx/page_customer.html

@@ -71,7 +71,7 @@
               var hasQueryParams = goHref.lastIndexOf('?') !== -1
               goHref += ((hasQueryParams ? '&' : '?') + 'auto=1')
             }
-            location.href = goHref
+            location.replace(goHref)
             return
           }
         }