mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 08:33:53 +08:00
feat: 新增智能体标签、上下文源功能
This commit is contained in:
@@ -107,6 +107,9 @@ const alovaInstance = createAlova({
|
||||
throw new Error(`请求错误[${code}]:${msg}`)
|
||||
}
|
||||
|
||||
if (config.meta?.isExposeError) {
|
||||
return Promise.reject(msg)
|
||||
}
|
||||
if (config.meta?.toast !== false) {
|
||||
toast.warning(msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user