fix: fix cinder services data

Use index as id to filter correctly

Change-Id: I4c7302690c2dc70029024a49d2f9b41155e594b3
This commit is contained in:
xusongfu 2022-08-26 10:42:41 +08:00
parent a4590711c8
commit aa80ffa9cf
2 changed files with 8 additions and 4 deletions

View File

@ -32,10 +32,6 @@ export class CinderService extends Base {
return t('cinder services');
}
get rowKey() {
return 'binary';
}
get hasTab() {
return true;
}

View File

@ -30,6 +30,14 @@ export class ServiceStore extends Base {
disable(body) {
return this.submitting(this.client.reason(body));
}
listDidFetch(items) {
if (!items.length) return items;
return items.map((it, index) => ({
...it,
id: index,
}));
}
}
const globalServiceStore = new ServiceStore();