import{n as o,m as n,_ as i}from"./index.13f93d3a.js";const c={name:"upload",data(){return{categories:[]}},mounted(){const s=this.$t("common.failure");this.$axios.get("/api/upload_type_list").then(t=>{const{code:e,msg:a=s,data:r=[]}=t.data;e==0?(this.categories=r,sessionStorage.setItem("conf_categories",JSON.stringify(r))):this.errors=a}).catch(()=>{this.errors=s})},methods:{toSubcategory(s){this.$router.push({path:"/upload/information",query:{id:s,category:n[s]}})}},computed:{nameKey(){return this.$store.state.nameKey}}};var _=function(){var t=this,e=t._self._c;return e("div",{staticClass:"upload"},[e("div",{staticClass:"back"},[e("router-link",{attrs:{to:"/me/profile"}},[e("img",{attrs:{src:i,alt:"back"}})])],1),e("div",{staticClass:"center"},[e("span",{domProps:{innerHTML:t._s(t.$t("upload.index.title"))}}),e("ul",t._l(t.categories,function(a){return e("li",{key:a.id},[e("div",{staticClass:"left"},[e("div",{staticClass:"point"}),t._v(" "+t._s(a[t.nameKey])+" ")]),e("div",{staticClass:"right"},[e("el-button",{attrs:{type:"primary",round:""},on:{click:function(r){return t.toSubcategory(a.id)}}},[t._v(t._s(t.$t("common.select")))])],1)])}),0)])])},l=[],d=o(c,_,l,!1,null,"db05e91a",null,null);const m=d.exports;export{m as default};
