This commit is contained in:
2025-04-14 15:28:51 +08:00
parent f100427f8b
commit 371b89ee8d
93 changed files with 3757 additions and 1038 deletions

View File

@@ -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); // 关闭弹窗
});
}