Skip to content

Commit

Permalink
bugfix: 修复插件状态页获取插件主机筛选条件接口慢导致UI阻塞问题(closed #2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
HubuHito authored and wyyalt committed Mar 13, 2024
1 parent a70cfda commit 52c94b9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/views/plugin/plugin-list/plugin-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,8 @@ export default class PluginList extends Mixins(HeaderFilterMixins) {
sourceConditions.value = [this.$route.params.policyId];
}
}
const promiseList: Promise<any>[] = [
this.getFilterData(),
this.getHostList(params),
];
await Promise.all(promiseList);
this.getFilterData();// 修复filter condition接口慢阻塞UI问题
await this.getHostList(params);
this.loading = false;
}
Expand Down

0 comments on commit 52c94b9

Please sign in to comment.