fix; bug

This commit is contained in:
杨航
2025-09-25 15:58:51 +08:00
parent 76acb4ee72
commit a662e9b6f9
2 changed files with 22 additions and 21 deletions
+19 -18
View File
@@ -819,24 +819,25 @@
if (watchFlag.value === 1) return
// getData('2');
// initsocketTask()
if (!isPreview.value) {
studyStartApi({
crsId: crsId.value,
teacherNo: choiceTeacher.value,
studyType: isPreview.value ? 'P' : 'S',
isContinue: 'Y',
stdyId: stdyId.value
}).then(res => {
const {
body
} = res
stdyId.value = body.stdyId || ''
stdyBatch.value = body.stdyBatch || ''
oldStdyId.value = body.oldStdyId || ''
logId.value = body.logId || ''
step.value = 2
}).catch(err => {})
}
// 注释显示时开始新纪录
// if (!isPreview.value) {
// studyStartApi({
// crsId: crsId.value,
// teacherNo: choiceTeacher.value,
// studyType: isPreview.value ? 'P' : 'S',
// isContinue: 'Y',
// stdyId: stdyId.value
// }).then(res => {
// const {
// body
// } = res
// stdyId.value = body.stdyId || ''
// stdyBatch.value = body.stdyBatch || ''
// oldStdyId.value = body.oldStdyId || ''
// logId.value = body.logId || ''
// step.value = 2
// }).catch(err => {})
// }
})
const watchFlag = ref(1)
onUnload(() => {