fix: keep parent sriov filter result if pcidevices status change

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee 2024-12-30 16:58:36 +08:00
parent 8d4524c4c6
commit 990c06ba98
No known key found for this signature in database
GPG Key ID: 10911689462678C7

View File

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