chunk-2d21f25f.ec07110b.js 977 B

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21f25f"],{d91e:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-button",{attrs:{type:"text"}},[a("el-upload",{attrs:{action:"/admin/uploadUserApply",headers:{"x-token":e.token},multiple:!1,"show-file-list":!1,accept:".zip","on-success":e.handleImageSuccess}},[a("el-button",{staticClass:"mt20",style:{width:e.width},attrs:{type:"primary"}},[e._v(" "+e._s(e.placeholder)+" ")])],1)],1)},n=[],l=a("5530"),i=a("5880"),r="/api",c={name:"upload-image",model:{prop:"imageUrl",event:"change"},props:["imageUrl","placeholder","width"],data:function(){return{path:r}},computed:Object(l["a"])({},Object(i["mapGetters"])("user",["userInfo","token"])),methods:{handleImageSuccess:function(e){var t=e.data;t&&(this.$emit("change",t.url),this.$emit("finish",t.url))}}},o=c,p=a("2877"),u=Object(p["a"])(o,s,n,!1,null,"502bb191",null);t["default"]=u.exports}}]);