|
@@ -165,14 +165,14 @@ export default {
|
|
|
this.action = this.obj[this.listType];
|
|
|
// 回显图片
|
|
|
this.form.file = this.url;
|
|
|
- var platformId = this.$props.platformId;
|
|
|
- this.form.platformId = this.$props.platformId;
|
|
|
- this.data.platformId = this.$props.platformId;
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
// 上传之前
|
|
|
async beforeUpload(file) {
|
|
|
+ var platformId = this.$props.platformId;
|
|
|
+ this.form.platformId = platformId;
|
|
|
+ this.data.platformId = platformId;
|
|
|
if (this.width && this.height) {
|
|
|
const data = await this.readerImg(file);
|
|
|
let _width =
|