fix: 修改邮箱出题页面表格显示项

This commit is contained in:
陆光LG
2025-08-17 20:20:12 +08:00
parent f5f30d2fbf
commit 7c7697f6d4
3 changed files with 132 additions and 22 deletions

View File

@@ -26,8 +26,8 @@ export function sendEmailMsg(pageName: string, description: string, category: st
// 拼接 content 字符串
const content = `${category}@${key}@${value}`
// 创建数据对象并添加到 store
const data = { contentIn, content };
// 创建数据对象并添加到 store包含scoreRate权值字段默认为空由用户填写
const data = { contentIn, content, scoreRate: '' };
// 为了避免重复,可以先查找并更新,如果不存在再添加
const existingIndex = emailStore.emailFormList.findIndex(item => item.content.startsWith(`${category}@${key}@`));