yshop1.7发布,后台升級eladmin2.4(前端,后台权限,代码生成器等重构),修复商品分类等一些问题
This commit is contained in:
@ -6,9 +6,10 @@
|
||||
:headers="headers"
|
||||
:show-file-list="false"
|
||||
:on-success="handleUploadSuccess"
|
||||
:before-upload="beforeAvatarUpload">
|
||||
:before-upload="beforeAvatarUpload"
|
||||
>
|
||||
<img v-if="value" :src="resourcesUrl + value" class="pic">
|
||||
<i v-else class="el-icon-plus pic-uploader-icon"></i>
|
||||
<i v-else class="el-icon-plus pic-uploader-icon" />
|
||||
</el-upload>
|
||||
</div>
|
||||
</template>
|
||||
@ -17,11 +18,11 @@
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
resourcesUrl: '',
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + getToken()
|
||||
'Authorization': getToken()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user