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);