You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.7 KiB
1 lines
2.7 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e1eff9b"],{"65e0":function(t,n,e){},"8f76":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("div",{staticClass:"box-card"},[e("div",{staticClass:"clearfix card_container"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(n){return t.clearCache(1)}}},[t._v("清除全部缓存")]),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(n){return t.clearCache(2)}}},[t._v("清理商户缓存")]),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(n){return t.clearCache(3)}}},[t._v("清理配置缓存")])],1)])])},r=[],c=e("f955"),u={name:"DataCache",data:function(){return{}},mounted:function(){},methods:{clearCache:function(t){var n=this;return new Promise((function(e,a){n.$confirm("确定清除吗?清除后无法恢复请谨慎操作!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["f"])({type:t}).then((function(t){var e=t.message;n.$message.success(e)})).catch((function(t){var e=t.message;n.$message.error(e)}))})).catch((function(t){n.$message({type:"info",message:"已取消"})}))}))}}},i=u,o=(e("96bd"),e("2877")),s=Object(o["a"])(i,a,r,!1,null,"d21d1c7c",null);n["default"]=s.exports},"96bd":function(t,n,e){"use strict";e("65e0")},f955:function(t,n,e){"use strict";e.d(n,"i",(function(){return r})),e.d(n,"j",(function(){return c})),e.d(n,"g",(function(){return u})),e.d(n,"d",(function(){return i})),e.d(n,"m",(function(){return o})),e.d(n,"l",(function(){return s})),e.d(n,"h",(function(){return f})),e.d(n,"c",(function(){return d})),e.d(n,"k",(function(){return l})),e.d(n,"b",(function(){return p})),e.d(n,"e",(function(){return h})),e.d(n,"a",(function(){return m})),e.d(n,"f",(function(){return b})),e.d(n,"n",(function(){return y}));var a=e("0c6d");function r(){return a["a"].get("safety/database/fileList")}function c(t){return a["a"].delete("safety/database/delete",t)}function u(){return a["a"].get("safety/database/lst")}function i(t){return a["a"].post("safety/database/backups",t)}function o(t){return a["a"].post("safety/database/repair",t)}function s(t){return a["a"].post("safety/database/optimize",t)}function f(t){return a["a"].get("safety/database/detail/".concat(t))}function d(){return a["a"].get("auth")}function l(){return a["a"].get("copyright/auth")}function p(t){return a["a"].post("auth_apply",t)}function h(){return a["a"].get("check_auth")}function m(){return a["a"].get("pay/auth")}function b(t){return a["a"].post("clear/cache",t)}function y(t){return a["a"].post("copyright/save",t)}}}]); |