import{_ as a}from"./message.c224909c.js";import{_ as o}from"./success.b7dfa7d0.js";import{n}from"./index.13f93d3a.js";const i={name:"upload-success",data(){return{image:"",interval:1e3,count:0,total:3}},mounted(){const{image:e}=JSON.parse(sessionStorage.getItem("conf_upload")||"{}");e&&(this.image=e),this.startCountdown()},methods:{startCountdown(){this.countdown()},countdown(){if(this.count++>=this.total){this.count=0,sessionStorage.removeItem("conf_upload"),this.$router.push({path:"/upload"});return}setTimeout(this.countdown,this.interval)}}};var r=function(){var s=this,t=s._self._c;return t("div",{staticClass:"upload-success"},[t("div",{staticClass:"upload-content"},[t("div",{staticClass:"left"},[s.image?t("img",{attrs:{src:s.image,alt:"upload image"}}):t("img",{attrs:{src:a,alt:"upload image"}})]),t("div",{staticClass:"right"},[t("img",{attrs:{src:o,alt:"success"}}),t("b",[s._v(s._s(s.$t("common.uploadComplete")))])])]),t("div",{staticClass:"upload-mask"})])},c=[],_=n(i,r,c,!1,null,"f6d4ec74",null,null);const d=_.exports;export{d as default};
