Merge pull request #54 from a110605/port_6660

fix: keep parent sriov filter result if pcidevices status change
This commit is contained in:
Andy Lee 2025-01-01 12:55:23 +08:00 committed by GitHub
commit 94429d6b64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,11 @@ export default {
devices: {
handler(v) {
this.rows = v;
this.filterRows = this.rows;
if (this.parentSriov) {
this.filterRows = this.rows.filter((row) => row.labels[this.parentSriovLabel] === this.parentSriov);
} else {
this.filterRows = this.rows;
}
},
immediate: true,
},