作者 PPPSCN

清空系统缓存提示

@@ -48,16 +48,16 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'validator'], f @@ -48,16 +48,16 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'validator'], f
48 }); 48 });
49 49
50 //清除缓存 50 //清除缓存
51 - $(document).on('click', "[data-toggle='wipeCache']", function () { 51 + $(document).on('click', "[data-toggle='wipecache']", function () {
52 $.ajax({ 52 $.ajax({
53 - url: 'ajax/wipeCache', 53 + url: 'ajax/wipecache',
54 dataType: 'json', 54 dataType: 'json',
55 cache: false, 55 cache: false,
56 success: function (ret) { 56 success: function (ret) {
57 if (ret.code === 1) { 57 if (ret.code === 1) {
58 - Backend.api.toastr.success(ret.msg); 58 + Backend.api.toastr.success(__('Wipe cache completed'));
59 } else { 59 } else {
60 - Backend.api.toastr.error('清除系统缓存失败!'); 60 + Backend.api.toastr.error(__('Wipe cache failed'));
61 } 61 }
62 } 62 }
63 }); 63 });