fix: 修改邮箱出题页面表格显示项
This commit is contained in:
@@ -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}@`));
|
||||
|
Reference in New Issue
Block a user