xiatian 1 年之前
父节点
当前提交
0302d21e91
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      stmms-web/src/main/webapp/WEB-INF/views/modules/exam/inspectedList.jsp

+ 5 - 0
stmms-web/src/main/webapp/WEB-INF/views/modules/exam/inspectedList.jsp

@@ -229,6 +229,11 @@
             }
            // localStorage.setItem("inspectQuery", JSON.stringify($("#searchForm").serializeArray()));
             $.post('${ctx}/admin/exam/inspected/cancel', {studentId: $(this).attr('data-id')}, function (result) {
+            	if(typeof result.success === 'undefined'){
+            		alert("权限失效,请重新登录!");
+                    window.location.href = "/login";
+                    return;
+            	}
                 if (result.success == true) {
                     alert('取消成功');
                     $('[name="subjectCode"]').attr('value',result.subjectCode);