fix; bug
This commit is contained in:
+19
-18
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user