|
@@ -182,7 +182,7 @@
|
|
|
<el-input v-model="categoryForm.licenseRate" placeholder="请输入参考许可费率(许可费率介于0-1之间)"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="图片 ">
|
|
|
- <el-upload ref="upload" action="#" :auto-upload="false" :on-change="handleChange" list-type="picture" :show-file-list="false">
|
|
|
+ <el-upload ref="upload" action="#" :auto-upload="false" :on-change="handleChange1" list-type="picture" :show-file-list="false">
|
|
|
<span v-if="categoryForm.pictures&&categoryForm.pictures.length>0" class="avatar">
|
|
|
<span class="deleteImg">
|
|
|
<span>
|
|
@@ -276,7 +276,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
userinfo() {
|
|
|
- return this.$store.state.user.userinfo
|
|
|
+ return this.$store.state.admin.userinfo
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
@@ -613,7 +613,10 @@ export default {
|
|
|
this.$set(this.productForm,'pictures', [{url:file.url}])
|
|
|
this.file=[file.raw]
|
|
|
},
|
|
|
-
|
|
|
+ handleChange1(file, fileList) {
|
|
|
+ this.$set(this.categoryForm,'pictures', [{url:file.url}])
|
|
|
+ this.file=[file.raw]
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|