mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 01:53:53 +08:00
fix: 修复 mobile 短信验证码错误重复提示、智能体插件保存异常问题
This commit is contained in:
@@ -587,15 +587,6 @@ function handleTools() {
|
||||
})
|
||||
}
|
||||
|
||||
// 监听插件配置更新
|
||||
function watchPluginUpdates() {
|
||||
// 监听store中的插件配置变化
|
||||
watch(() => pluginStore.currentFunctions, (newFunctions) => {
|
||||
console.log('插件配置已更新:', newFunctions)
|
||||
formData.value.functions = newFunctions
|
||||
}, { deep: true })
|
||||
}
|
||||
|
||||
// 获取智能体标签
|
||||
async function loadAgentTags() {
|
||||
try {
|
||||
@@ -611,9 +602,12 @@ async function handleUpdateAgentTags() {
|
||||
await updateAgentTags(agentId.value, { tagNames })
|
||||
}
|
||||
|
||||
// 监听store中的插件配置变化
|
||||
watch(() => pluginStore.currentFunctions, (newFunctions) => {
|
||||
formData.value.functions = newFunctions
|
||||
}, { deep: true })
|
||||
|
||||
onMounted(async () => {
|
||||
// 初始化插件配置监听
|
||||
watchPluginUpdates()
|
||||
loadAgentTags()
|
||||
|
||||
// 先加载模型选项和角色模板
|
||||
|
||||
Reference in New Issue
Block a user