diff --git a/frontend/src/components/canvas/components/Editor/VideoLinks.vue b/frontend/src/components/canvas/components/Editor/VideoLinks.vue index 1be5b099ee..d0dc3de5e7 100644 --- a/frontend/src/components/canvas/components/Editor/VideoLinks.vue +++ b/frontend/src/components/canvas/components/Editor/VideoLinks.vue @@ -61,8 +61,18 @@ export default { ] } }, + watch: { + linkInfo: { + handler: function() { + this.init() + }, + deep: true + } + }, + created() { + this.init() + }, mounted() { - this.linkInfoTemp = deepCopy(this.linkInfo) }, computed: { ...mapState([ @@ -70,6 +80,9 @@ export default { ]) }, methods: { + init() { + this.linkInfoTemp = deepCopy(this.linkInfo) + }, onSubmit() { this.curComponent.videoLinks = this.linkInfoTemp this.$store.state.styleChangeTimes++ diff --git a/frontend/src/components/canvas/custom-component/DeVideo.vue b/frontend/src/components/canvas/custom-component/DeVideo.vue index 252fc79897..41cd8b33f2 100644 --- a/frontend/src/components/canvas/custom-component/DeVideo.vue +++ b/frontend/src/components/canvas/custom-component/DeVideo.vue @@ -1,7 +1,8 @@