mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
feat: 在对话框可见性变化时获取最近的50条记录
This commit is contained in:
@@ -160,6 +160,11 @@ export default {
|
||||
visible(newVal) {
|
||||
if (newVal) {
|
||||
this.dialogKey = Date.now();
|
||||
api.agent.getRecentlyFiftyByAgentId(this.agentId, ((data) => {
|
||||
this.valueTypeOptions = data.data.data.map(item => ({
|
||||
...item
|
||||
}));
|
||||
}))
|
||||
}
|
||||
},
|
||||
agentId(newVal) {
|
||||
|
||||
Reference in New Issue
Block a user