Преглед на файлове

fix issue with updating interactive images

Falko Schindler преди 2 години
родител
ревизия
14b882f6df
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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) {