Browse Source

fix issue with updating interactive images

Falko Schindler 2 năm trước cách đây
mục cha
commit
14b882f6df
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      nicegui/elements/interactive_image.js

+ 3 - 0
nicegui/elements/interactive_image.js

@@ -79,6 +79,9 @@ Vue.component("interactive_image", {
     };
     const connectInterval = setInterval(sendConnectEvent, 100);
   },
+  updated() {
+    this.image.src = this.$props.jp_props.options.source;
+  },
   methods: {
     set_source(source) {
       if (this.loading) {