2
This commit is contained in:
@@ -103,19 +103,24 @@
|
||||
}
|
||||
|
||||
function refreshCache() {
|
||||
$.ajax({
|
||||
url: '/system/menu/refresh_cache',
|
||||
type: 'post',
|
||||
headers: { 'X-CSRF-Token': $('#csrf_token').val() },
|
||||
success: function (result) {
|
||||
if (result.success) {
|
||||
layer.msg(result.msg, { icon: 1, time: 1000 }, function () {
|
||||
table.reload('tablelist');
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.msg, { icon: 2 })
|
||||
layer.confirm('确定要刷新菜单缓存数据吗?', { title: '提示' }, function (index, layero) {
|
||||
$.ajax({
|
||||
url: '/system/menu/refresh_cache',
|
||||
type: 'post',
|
||||
headers: { 'X-CSRF-Token': $('#csrf_token').val() },
|
||||
success: function (result) {
|
||||
if (result.success) {
|
||||
layer.msg(result.msg, { icon: 1, time: 1000 }, function () {
|
||||
table.reload('tablelist');
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.msg, { icon: 2 })
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
layer.close(index); // 关闭弹窗
|
||||
}, function (index, layero) {
|
||||
layer.close(index); // 关闭弹窗
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user