mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix(518e78c286): uncorresponding value of select box
This commit is contained in:
1 parent
784c02e7a9
commit
4908644bcc
1 file changed
+13
-9
@@ -672,15 +672,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.readonly) {
|
||||
this.$refs.section
|
||||
.querySelectorAll("input, textarea")
|
||||
.forEach(x => (x.readOnly = "readOnly"));
|
||||
this.$refs.section.querySelectorAll("select").forEach(x => {
|
||||
const text = x.querySelector(`option[value="${x.value}"]`).textContent;
|
||||
x.outerHTML = `<input type="text" class="input" readonly="readonly" value="${text}">`;
|
||||
});
|
||||
}
|
||||
if (localStorage["vlessValid"] === "true") {
|
||||
this.showVLess = true;
|
||||
this.vlessVersion = 1;
|
||||
@@ -737,6 +728,19 @@ export default {
|
||||
this.trojan = this.resolveURL(res.data.data.sharingAddress);
|
||||
this.tabChoice = 4;
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
if (this.readonly) {
|
||||
this.$refs.section
|
||||
.querySelectorAll("input, textarea")
|
||||
.forEach(x => (x.readOnly = "readOnly"));
|
||||
this.$refs.section.querySelectorAll("select").forEach(x => {
|
||||
const text = x.querySelector(`option[value="${x.value}"]`)
|
||||
.textContent;
|
||||
console.log(x.value, text);
|
||||
x.outerHTML = `<input type="text" class="input" readonly="readonly" value="${text}">`;
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user