const template=`
`; export default { name: "Trash", data: function () { return { } }, props:{ }, template:template, methods:{ wipeAllCache:function (){ this.postData('all'); }, wipeContentCache:function (){ this.postData('content'); }, wipeTemplateCache:function (){ this.postData('template'); }, wipeBrowserCache:function (){ this.postData('browser'); }, postData:function (type){ Yunqi.ajax.get('ajax/wipecache',{type:type},true,false).then(res=>{ Yunqi.message.success(__('清理完成')); setTimeout(function (){ location.reload(); },1500); }).catch(err=>{ if(!err.msg){ Yunqi.message.error(__('清理失败')); } }); } } };