feat:代码优化及格式化注释
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user