Browse Source

fix: 处理notin referer问题

cuiyalong 1 year ago
parent
commit
3fb32265a1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/web/staticres/js/login.js

+ 3 - 1
src/web/staticres/js/login.js

@@ -537,7 +537,9 @@ var processpage = function(item,num){
   if (backToUrl) {
   if (backToUrl) {
     return location.replace(decodeURIComponent(backToUrl))
     return location.replace(decodeURIComponent(backToUrl))
   }
   }
-
+  if (document.referrer === location.href) {
+    return location.replace('/')
+  }
 	var toHref=$("#bidLogin").attr("data-rec")
 	var toHref=$("#bidLogin").attr("data-rec")
 	switch (toHref) {
 	switch (toHref) {
 		case "sjdc":
 		case "sjdc":