|
|
@@ -153,7 +153,14 @@ export default {
|
|
|
console.log(e);
|
|
|
if (e) {
|
|
|
this.$set(this.formData, 'name', e.name);
|
|
|
- this.$set(this.formData, 'pic', ((e.pic || []).find(i => !/\.mp4$/.test(i.url)) || {}).url);
|
|
|
+ if (e.pic && e.pic[0]){
|
|
|
+ if (/\.mp4$/.test(e.pic[0].url)) {
|
|
|
+ this.$set(this.formData, 'pic', e.pic[0].thumb);
|
|
|
+ } else {
|
|
|
+ this.$set(this.formData, 'pic', e.pic[0].url);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|