From 268d58a278c6e93f2ebbd567686e70383aacfea4 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 03 七月 2020 14:16:23 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/crn.html |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/views/crn.html b/src/main/webapp/views/crn.html
index dce019a..ec56bd0 100644
--- a/src/main/webapp/views/crn.html
+++ b/src/main/webapp/views/crn.html
@@ -224,7 +224,7 @@
                         $("#crn"+commands[i].crnNo).val(commands[i].command);
                     }
                 } else if (res.code === 403) {
-                    top.location.href = baseUrl + "/login";
+                    window.location.href = baseUrl + "/login";
                 } else {
                     alert(res.msg);
                 }
@@ -263,7 +263,7 @@
                         setVal(tr.children("td").eq(12), table[i-1].warnCode);
                     }
                 } else if (res.code === 403){
-                    top.location.href = baseUrl+"/login";
+                    window.location.href = baseUrl+"/login";
                 }  else {
                     alert(res.msg);
                 }
@@ -299,7 +299,7 @@
                         setVal(tr.children("td").eq(9), table[i-1].command);
                     }
                 } else if (res.code === 403){
-                    top.location.href = baseUrl+"/login";
+                    window.location.href = baseUrl+"/login";
                 }  else {
                     alert(res.msg);
                 }
@@ -412,7 +412,7 @@
                 if (res.code === 200) {
                     crnOutput(res.data);
                 } else if (res.code === 403) {
-                    top.location.href = baseUrl + "/login";
+                    window.location.href = baseUrl + "/login";
                 } else {
                     alert(res.msg);
                 }

--
Gitblit v1.9.1