Compare commits

..

1 commit

Author SHA1 Message Date
Peter Liu
a7303df92b
Merge c0821672c2 into 37f0880f8f 2026-02-20 17:13:47 +00:00

View file

@ -48,7 +48,7 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label='{{ i18n "pages.xray.outbound.city" }}' v-if="nordModal.cities.length > 0"> <a-form-item label='{{ i18n "pages.xray.outbound.city" }}' v-if="nordModal.cities.length > 0">
<a-select v-model="nordModal.cityId" @change="onCityChange" show-search option-filter-prop="label"> <a-select v-model="nordModal.cityId" show-search option-filter-prop="label">
<a-select-option :key="0" :value="null" label='{{ i18n "pages.xray.outbound.allCities" }}'> <a-select-option :key="0" :value="null" label='{{ i18n "pages.xray.outbound.allCities" }}'>
{{ i18n "pages.xray.outbound.allCities" }} {{ i18n "pages.xray.outbound.allCities" }}
</a-select-option> </a-select-option>
@ -182,10 +182,6 @@
return s; return s;
}).sort((a, b) => a.load - b.load); }).sort((a, b) => a.load - b.load);
if (this.servers.length > 0) {
this.serverId = this.servers[0].id;
}
if (this.servers.length === 0) { if (this.servers.length === 0) {
app.$message.warning('No servers found for the selected country'); app.$message.warning('No servers found for the selected country');
} }
@ -280,13 +276,6 @@
fetchServers: () => nordModal.fetchServers(), fetchServers: () => nordModal.fetchServers(),
addOutbound: () => nordModal.addOutbound(), addOutbound: () => nordModal.addOutbound(),
resetOutbound() { nordModal.resetOutbound(this.nordOutboundIndex) }, resetOutbound() { nordModal.resetOutbound(this.nordOutboundIndex) },
onCityChange() {
if (this.filteredServers.length > 0) {
this.nordModal.serverId = this.filteredServers[0].id;
} else {
this.nordModal.serverId = null;
}
}
}, },
computed: { computed: {
nordOutboundIndex: { nordOutboundIndex: {