Skip to content

Commit

Permalink
修复monitor用户组无权限但不提示的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
jc3wish committed Sep 14, 2022
1 parent 61c4204 commit 63da5c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/view/public/js/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function Ajax(method,url,data,callbackFun,sync) {
contentType: "application/json",
success:function(callbackData){ //请求成功的回调函数
if (callbackData.hasOwnProperty("status")){
if (data.status == -1) {
alert(data.msg);
if (callbackData.status == -1) {
alert(callbackData.msg);
return;
}
}
Expand All @@ -46,8 +46,8 @@ function AjaxGet(method,url,data,callbackFun,async) {
async:async,
success:function(callbackData){ //请求成功的回调函数
if (callbackData.hasOwnProperty("status")){
if (data.status == -1) {
alert(data.msg);
if (callbackData.status == -1) {
alert(callbackData.msg);
return;
}
}
Expand Down

0 comments on commit 63da5c8

Please sign in to comment.