(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["setting"],{"9b7d":function(a,e,t){"use strict";t.r(e);var o=function(){var a=this,e=a._self._c;return e("a-card",{attrs:{bordered:!1}},[e("content-header",{attrs:{title:"清理缓存"}}),e("a-form",{attrs:{form:a.form}},[e("a-form-item",{attrs:{label:"缓存项目",labelCol:{span:6},wrapperCol:{span:13}}},[e("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["item",{initialValue:["data","temp"]}],expression:"['item', { initialValue: ['data', 'temp'] }]"}]},[e("a-checkbox",{attrs:{value:"data"}},[a._v("数据缓存")]),e("a-checkbox",{attrs:{value:"temp"}},[a._v("临时图片")])],1)],1),e("a-form-item",{attrs:{label:"强制模式",labelCol:{span:6},wrapperCol:{span:13},extra:"强制清空所有缓存文件,包含用户授权登录状态的数据,正式环境中请勿勾选"}},[e("a-switch",{directives:[{name:"decorator",rawName:"v-decorator",value:["isForce",{valuePropName:"checked"}],expression:"['isForce', { valuePropName: 'checked' }]"}]})],1),e("a-form-item",{attrs:{wrapperCol:{span:13,offset:6}}},[e("a-button",{attrs:{type:"primary",loading:a.isLoading,disabled:a.isLoading},on:{click:a.handleSubmit}},[a._v("提交")])],1)],1)],1)},r=[],n=(t("d3b7"),t("f6ae")),i=t("b775");function s(a){return Object(i["b"])({url:n["a"].setting.cache.clear,method:"post",data:a})}var c=t("2af9"),l=t("4360"),d={name:"TableList",components:{ContentHeader:c["a"],STable:c["d"]},data:function(){return{isLoading:!1,form:this.$form.createForm(this)}},created:function(){},methods:{handleSubmit:function(){var a=this,e=this.form.validateFields;e((function(e,t){e||(a.isLoading=!0,a.onFormSubmit(t).finally((function(){return a.isLoading=!1})))}))},onFormSubmit:function(a){var e=this;return s({form:a}).then((function(t){e.$message.success(t.message),!0===a.isForce&&l["a"].dispatch("Logout").then((function(){setTimeout((function(){window.location.reload()}),1200)}))}))}}},u=d,m=t("2877"),p=Object(m["a"])(u,o,r,!1,null,null,null);e["default"]=p.exports}}]);