mirror of https://gitee.com/karson/fastadmin.git
清空系统缓存提示
parent
ec0eefd16a
commit
388b5b6133
|
|
@ -48,16 +48,16 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'validator'], f
|
|||
});
|
||||
|
||||
//清除缓存
|
||||
$(document).on('click', "[data-toggle='wipeCache']", function () {
|
||||
$(document).on('click', "[data-toggle='wipecache']", function () {
|
||||
$.ajax({
|
||||
url: 'ajax/wipeCache',
|
||||
url: 'ajax/wipecache',
|
||||
dataType: 'json',
|
||||
cache: false,
|
||||
success: function (ret) {
|
||||
if (ret.code === 1) {
|
||||
Backend.api.toastr.success(ret.msg);
|
||||
Backend.api.toastr.success(__('Wipe cache completed'));
|
||||
} else {
|
||||
Backend.api.toastr.error('清除系统缓存失败!');
|
||||
Backend.api.toastr.error(__('Wipe cache failed'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue