fix: 修复工具ps/net资源列表
This commit is contained in:
@@ -50,6 +50,9 @@ function wsMessage(res: Record<string, any>) {
|
||||
if (requestId.startsWith('ps_')) {
|
||||
// 将数据填入表格
|
||||
if (Array.isArray(data)) {
|
||||
if (tableState.loading) {
|
||||
tableState.loading = false;
|
||||
}
|
||||
tableState.data = data;
|
||||
} else {
|
||||
tableState.data = [];
|
||||
@@ -97,10 +100,9 @@ function fnGetList() {
|
||||
ws.send(msg);
|
||||
// 定时刷新数据
|
||||
state.interval = setInterval(() => {
|
||||
msg.data = state.query;
|
||||
msg.data = JSON.parse(JSON.stringify(state.query));
|
||||
ws.send(msg);
|
||||
}, state.intervalTime);
|
||||
tableState.loading = false;
|
||||
}
|
||||
|
||||
/**查询参数传入 */
|
||||
@@ -320,8 +322,6 @@ onBeforeUnmount(() => {
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
<div>{{ state.query }}</div>
|
||||
<div>{{ queryParams }}</div>
|
||||
</a-card>
|
||||
|
||||
<a-card :bordered="false" :body-style="{ padding: '0px' }">
|
||||
|
||||
Reference in New Issue
Block a user