From 388b5b6133398e1d591fa31e2c4dbbec5c8e9858 Mon Sep 17 00:00:00 2001 From: PPPSCN <35696959@qq.com> Date: Fri, 5 May 2017 21:58:25 +0800 Subject: [PATCH] 清空系统缓存提示 --- public/assets/js/backend/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/assets/js/backend/index.js b/public/assets/js/backend/index.js index 5d44a58..0672af0 100755 --- a/public/assets/js/backend/index.js +++ b/public/assets/js/backend/index.js @@ -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')); } } }); -- libgit2 0.24.0