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