mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
feat: 在对话框可见性变化时获取最近的50条记录
This commit is contained in:
parent
d9062a0bb0
commit
b17f20eece
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue