Browse Source

登录失效调试6

zhouna 3 năm trước cách đây
mục cha
commit
aeb92c3bf2
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/js/utils.js

+ 2 - 1
src/js/utils.js

@@ -187,6 +187,7 @@ const post = function (url, data, opts) {
           res = JSON.parse(resq);
         }
         const code = res.code;
+		console.log(parent)
 		const isOut = code === '10020011' || code === '10020012' || code === '10020013';
         if(isOut){
           //登录信息失效处理
@@ -235,7 +236,7 @@ const post = function (url, data, opts) {
 function unloginPop(msg){
   /*const isOut = code === '10020011' || code === '10020012' || code === '10020013';
   if(isOut){*/
-    if(self != top&&window.location.url.indexOf("qcScore.html")===-1){//子窗口并且不是病例列表
+    if(self != top&&parent&&parent.location.href.indexOf("qcScore.html")===-1){//子窗口并且不是病例列表
 	  const dialogmessage = {
 		iframemessage: 1,
 		data: msg