公告删除提示bug修正
This commit is contained in:
parent
7592e397a6
commit
e067cfc876
@ -120,9 +120,9 @@ class Index extends BaseController
|
|||||||
$data['update_time'] = time();
|
$data['update_time'] = time();
|
||||||
if (Db::name('Note')->update($data) !== false) {
|
if (Db::name('Note')->update($data) !== false) {
|
||||||
add_log('delete', $id);
|
add_log('delete', $id);
|
||||||
return to_assign(1, "删除成功");
|
return to_assign(0, "删除成功");
|
||||||
} else {
|
} else {
|
||||||
return to_assign(0, "删除失败");
|
return to_assign(1, "删除失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,8 @@
|
|||||||
title: '提示'
|
title: '提示'
|
||||||
}, function(index) {
|
}, function(index) {
|
||||||
let callback = function (e) {
|
let callback = function (e) {
|
||||||
layer.msg(res.msg);
|
layer.msg(e.msg);
|
||||||
if (res.code == 0) {
|
if (e.code == 0) {
|
||||||
obj.del();
|
obj.del();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user