修改
This commit is contained in:
parent
54ef7a9ff7
commit
eee424562f
@ -189,7 +189,15 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
tovideo: {
|
tovideo: {
|
||||||
handler(newimg, oldimg) {}
|
handler(newimg, oldimg) {
|
||||||
|
if (this.tovideo == null) {
|
||||||
|
this.video.VideoPath = null;
|
||||||
|
} else if (this.tovideo == "") {
|
||||||
|
this.video.VideoPath = null;
|
||||||
|
} else {
|
||||||
|
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
item: {
|
item: {
|
||||||
handler(newimg, oldimg) {
|
handler(newimg, oldimg) {
|
||||||
@ -276,7 +284,8 @@ export default {
|
|||||||
this.uploadbtn = false;
|
this.uploadbtn = false;
|
||||||
uploadVideoUrl(formData).then(response => {
|
uploadVideoUrl(formData).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + response.imgUrl;
|
this.video.VideoPath =
|
||||||
|
process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||||
this.$emit("imgUrl", response.imgUrl);
|
this.$emit("imgUrl", response.imgUrl);
|
||||||
this.items.itemDirectoryUrl = response.imgUrl;
|
this.items.itemDirectoryUrl = response.imgUrl;
|
||||||
this.$emit("item", JSON.stringify(this.items));
|
this.$emit("item", JSON.stringify(this.items));
|
||||||
@ -319,7 +328,8 @@ export default {
|
|||||||
} else if (this.types == "posterVideoUrl") {
|
} else if (this.types == "posterVideoUrl") {
|
||||||
updatePoserHeads(formData).then(response => {
|
updatePoserHeads(formData).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + response.imgUrl;
|
this.video.VideoPath =
|
||||||
|
process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||||
this.$emit("imgUrl", response.imgUrl);
|
this.$emit("imgUrl", response.imgUrl);
|
||||||
this.openimg = false;
|
this.openimg = false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -123,7 +123,11 @@ export default {
|
|||||||
this.uploadbtn = true;
|
this.uploadbtn = true;
|
||||||
this.filedata.type = this.type;
|
this.filedata.type = this.type;
|
||||||
this.items = this.item;
|
this.items = this.item;
|
||||||
if (this.tovideo) {
|
if (this.tovideo == null) {
|
||||||
|
this.video.VideoPath = null;
|
||||||
|
} else if (this.tovideo == "") {
|
||||||
|
this.video.VideoPath = null;
|
||||||
|
} else {
|
||||||
this.videoForm.showVideoPath =
|
this.videoForm.showVideoPath =
|
||||||
process.env.VUE_APP_BASE_API + this.tovideo;
|
process.env.VUE_APP_BASE_API + this.tovideo;
|
||||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
||||||
@ -134,10 +138,13 @@ export default {
|
|||||||
tovideo: {
|
tovideo: {
|
||||||
handler(newimg, oldimg) {
|
handler(newimg, oldimg) {
|
||||||
this.uploadbtn = true;
|
this.uploadbtn = true;
|
||||||
if (this.tovideo) {
|
if (newimg == null) {
|
||||||
this.videoForm.showVideoPath =
|
this.video.VideoPath = null;
|
||||||
process.env.VUE_APP_BASE_API + this.tovideo;
|
} else if (newimg == "") {
|
||||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
this.video.VideoPath = null;
|
||||||
|
} else {
|
||||||
|
this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + newimg;
|
||||||
|
this.video.VideoPath = process.env.VUE_APP_BASE_API + newimg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user