Update configurationList.vue

This commit is contained in:
Donald Zou 2024-12-09 16:13:06 +08:00
parent 6a88959ec4
commit d7bc8cd8e4

View File

@ -49,8 +49,6 @@ export default {
return [...this.wireguardConfigurationsStore.Configurations] return [...this.wireguardConfigurationsStore.Configurations]
.filter(x => x.Name.includes(this.searchKey) || x.PublicKey.includes(this.searchKey) || !this.searchKey) .filter(x => x.Name.includes(this.searchKey) || x.PublicKey.includes(this.searchKey) || !this.searchKey)
.sort((a, b) => { .sort((a, b) => {
if (this.currentSort.order === 'desc') { if (this.currentSort.order === 'desc') {
return this.dotNotation(a, this.currentSort.key) < this.dotNotation(b, this.currentSort.key) ? return this.dotNotation(a, this.currentSort.key) < this.dotNotation(b, this.currentSort.key) ?
1 : this.dotNotation(a, this.currentSort.key) > this.dotNotation(b, this.currentSort.key) ? -1 : 0; 1 : this.dotNotation(a, this.currentSort.key) > this.dotNotation(b, this.currentSort.key) ? -1 : 0;