1 line
1.7 KiB
JavaScript
1 line
1.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd46d"],{8164:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[n("el-card",{staticClass:"box-card",staticStyle:{background:"rgb(240, 249, 235)","text-align":"center"},attrs:{shadow:"hover"}},[n("p",{staticStyle:{"margin-bottom":"0"}},[n("el-link",{attrs:{type:"success",underline:!1}},[e._v(e._s(e.$t("upgrade_successful1")))])],1),n("p",{staticStyle:{margin:"0"}},[n("el-link",{attrs:{type:"success",underline:!1}},[e._v(e._s(e.version))])],1),n("p",{staticStyle:{"margin-bottom":"0"}},[n("el-link",{attrs:{type:"success",underline:!1}},[e._v(e._s(e.$t("upgrade_successful3",{dir:e.dir})))])],1),n("p",{staticStyle:{margin:"0"}},[n("el-link",{attrs:{type:"success",underline:!1}},[e._v(e._s(e.$t("upgrade_successful4",{backdir:e.backdir})))])],1)])],1)},r=[],s=(n("96cf"),n("1da1")),i={props:["returnData"],data:function(){return{loading:!1,version:"",dir:"",backdir:""}},created:function(){this.getData()},methods:{getData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.axios.post("admin.php?mod=system&op=intsystemupgrade&operation=patch&step=5&version="+e.returnData.version);case 3:n=t.sent,a=n.data,e.version=e.$t("upgrade_successful2",{msg:a.version}),e.dir=a.dir,e.backdir=a.backdir,e.loading=!1;case 9:case"end":return t.stop()}}),t)})))()}},components:{},mounted:function(){}},c=i,d=n("2877"),o=Object(d["a"])(c,a,r,!1,null,"c979d17a",null);t["default"]=o.exports}}]); |