chao преди 4 години
родител
ревизия
e23df5c9a7

+ 2 - 2
src/main/resources/static/js/account/login.js

@@ -91,7 +91,7 @@ var loginPage = new Vue({
                         _self.setStorages( _self.userData);
                         // 登录成功页面跳转
                         var loginBeforePath = getBaseCookie("loginBeforePath");
-                        if (loginBeforePath && loginBeforePath!=='undefined') {
+                        if (loginBeforePath && loginBeforePath!='undefined' && loginBeforePath.indexOf('.html')>0) {
                             delBaseCookie("loginBeforePath");
                             window.location.href = loginBeforePath;
                         } else if (_self.userData.userIdentity*1 === 3) {
@@ -153,7 +153,7 @@ var loginPage = new Vue({
                         _self.setStorages( _self.userData);
                         // 登录成功页面跳转
                         var loginBeforePath = getBaseCookie("loginBeforePath");
-                        if (loginBeforePath && loginBeforePath!=='undefined') {
+                        if (loginBeforePath && loginBeforePath!='undefined' && loginBeforePath.indexOf('.html')>0) {
                             delBaseCookie("loginBeforePath");
                             window.location.href = loginBeforePath;
                         } else if (_self.userData.userIdentity*1 === 3) {

+ 1 - 1
src/main/resources/static/js/base.js

@@ -573,7 +573,7 @@ function setProductPrice(productList, productIds, userId, callback){
 // 登录后返回登录前页面
 function toBeforePath(){
     var loginBeforePath = getBaseCookie("loginBeforePath");
-    if (loginBeforePath && loginBeforePath!=='undefined') {
+    if (loginBeforePath && loginBeforePath!='undefined' && loginBeforePath.indexOf('.html')>0) {
         delBaseCookie("loginBeforePath");
         window.location.href = loginBeforePath;
     }

+ 1 - 1
src/main/resources/templates/we_chat/redirect_uri.html

@@ -30,7 +30,7 @@
             };
             localStorage.setItem('userInfo',JSON.stringify(userData));
             var loginBeforePath = getBaseCookie("loginBeforePath");
-            if (loginBeforePath && loginBeforePath!=='undefined') {
+            if (loginBeforePath && loginBeforePath!='undefined' && loginBeforePath.indexOf('.html')>0) {
                 delBaseCookie("loginBeforePath");
                 window.location.href = loginBeforePath;
             } else if (userData.userIdentity*1 === 3) {