feat:代码优化及格式化注释

This commit is contained in:
liailing1026
2026-01-19 09:12:06 +08:00
parent 571b5101ff
commit c5848410c1
2 changed files with 191 additions and 85 deletions

View File

@@ -17,7 +17,7 @@ const currentTaskAgents = computed(() => {
return currentTask.value?.AgentSelection || []
})
// 所有agent列表(用于右侧展示)
// 所有agent列表
const allAgents = computed(() => {
return agentsStore.agents
})
@@ -69,7 +69,6 @@ const handleSubmit = async () => {
// 检查维度是否已存在
if (scoreDimensions.value.includes(newDimension)) {
console.log(`维度"${newDimension}"已存在,跳过添加`)
searchValue.value = ''
return
}
@@ -83,8 +82,6 @@ const handleSubmit = async () => {
aspectList: [...scoreDimensions.value, newDimension]
})
console.log('Mock API - 添加新维度成功:', response)
// 1. 先添加新维度到本地维度列表(立即显示)
scoreDimensions.value.push(response.aspectName)
@@ -101,8 +98,6 @@ const handleSubmit = async () => {
}
})
console.log(`已添加新维度"${response.aspectName}"到热力图`)
// 3. 异步更新 store等前端显示完成后再更新避免触发重新初始化
await nextTick()