mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
修复设备列表显示问题
This commit is contained in:
@@ -141,7 +141,8 @@ export default {
|
||||
},
|
||||
handleSearchReset() {
|
||||
this.isSearching = false;
|
||||
this.fetchAgentList();
|
||||
// 直接将原始设备列表赋值给显示设备列表,避免重新加载数据
|
||||
this.devices = [...this.originalDevices];
|
||||
},
|
||||
|
||||
// 搜索更新智能体列表
|
||||
@@ -164,7 +165,8 @@ export default {
|
||||
10 // 最多10个
|
||||
);
|
||||
|
||||
this.handleSearchReset();
|
||||
// 将原始设备列表赋值给显示设备列表
|
||||
this.devices = [...this.originalDevices];
|
||||
}
|
||||
this.isLoading = false;
|
||||
}, (error) => {
|
||||
|
||||
Reference in New Issue
Block a user