diff --git a/web/html/form/protocol/vless.html b/web/html/form/protocol/vless.html
index 46967ee3..ad5b4265 100644
--- a/web/html/form/protocol/vless.html
+++ b/web/html/form/protocol/vless.html
@@ -75,23 +75,23 @@
- inModal.updateTestseed(0, val)" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="900" addon-before="[0]">
+ updateTestseed(0, val)" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="900" addon-before="[0]">
- inModal.updateTestseed(1, val)" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="500" addon-before="[1]">
+ updateTestseed(1, val)" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="500" addon-before="[1]">
- inModal.updateTestseed(2, val)" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="900" addon-before="[2]">
+ updateTestseed(2, val)" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="900" addon-before="[2]">
- inModal.updateTestseed(3, val)" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="256" addon-before="[3]">
+ updateTestseed(3, val)" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="256" addon-before="[3]">
-
+
Rand
-
+
Reset
diff --git a/web/html/modals/inbound_modal.html b/web/html/modals/inbound_modal.html
index 172ef144..c3883285 100644
--- a/web/html/modals/inbound_modal.html
+++ b/web/html/modals/inbound_modal.html
@@ -270,15 +270,27 @@
this.inbound.settings.encryption = 'none';
this.inbound.settings.selectedAuth = undefined;
},
- // Wrapper methods for Vision Seed - delegate to inModal methods
+ // Vision Seed methods - must be in Vue methods for proper binding
updateTestseed(index, value) {
- inModal.updateTestseed(index, value);
+ // Ensure testseed is initialized
+ if (!this.inbound.settings.testseed || !Array.isArray(this.inbound.settings.testseed)) {
+ this.$set(this.inbound.settings, 'testseed', [900, 500, 900, 256]);
+ }
+ // Ensure array has enough elements
+ while (this.inbound.settings.testseed.length <= index) {
+ this.inbound.settings.testseed.push(0);
+ }
+ // Update value using Vue.set for reactivity
+ this.$set(this.inbound.settings.testseed, index, value);
},
setRandomTestseed() {
- inModal.setRandomTestseed();
+ // Create new array with random values and use Vue.set for reactivity
+ const newSeed = [Math.floor(Math.random()*1000), Math.floor(Math.random()*1000), Math.floor(Math.random()*1000), Math.floor(Math.random()*1000)];
+ this.$set(this.inbound.settings, 'testseed', newSeed);
},
resetTestseed() {
- inModal.resetTestseed();
+ // Reset testseed to default values using Vue.set for reactivity
+ this.$set(this.inbound.settings, 'testseed', [900, 500, 900, 256]);
}
},
});