Compare commits

..

2 Commits

Author SHA1 Message Date
zouyf ca3f2658a7 Merge pull request '1' (#64) from zouyf_dev into main
Reviewed-on: #64
2024-11-25 11:19:34 +08:00
“zouyf” cd1fc036a2 1 2024-11-25 11:18:45 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -1698,7 +1698,7 @@ watch(() => props.bookobj.levelSecondId, async (newVal, oldVal) => {
* 2. 其他: 获取当前章节下的所有知识点 * 2. 其他: 获取当前章节下的所有知识点
*/ */
let id = props.bookobj.levelSecondId; let id = props.bookobj.levelSecondId;
if(props.bookobj.node.edusubject == '语文' || props.bookobj.node.edusubject == '英语'){ if( props.bookobj.node.edustage == '高中' && (props.bookobj.node.edusubject == '语文' || props.bookobj.node.edusubject == '英语') ){
id = props.bookobj.node.rootid; id = props.bookobj.node.rootid;
const res = await listEvaluation({ edusubject: props.bookobj.node.edusubject, edustage: props.bookobj.node.edustage, itemkey: "subject", pageSize: 10 }); const res = await listEvaluation({ edusubject: props.bookobj.node.edusubject, edustage: props.bookobj.node.edustage, itemkey: "subject", pageSize: 10 });
id = res.rows[0]?.id; id = res.rows[0]?.id;