Merge pull request 'fix:获取所有的教材;' (#412) from yangws into main

Reviewed-on: #412
This commit is contained in:
yangws 2024-11-20 15:58:11 +08:00
commit c691612bff
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@
import { onMounted, ref, nextTick, toRaw, reactive } from 'vue'; import { onMounted, ref, nextTick, toRaw, reactive } from 'vue';
import { cloneDeep } from 'lodash' import { cloneDeep } from 'lodash'
import { listEvaluation } from '@/api/subject' import { listEvaluation } from '@/api/subject'
import { sessionStore } from '@/utils/store'
const BaseUrl = import.meta.env.VITE_APP_BUILD_BASE_PATH const BaseUrl = import.meta.env.VITE_APP_BUILD_BASE_PATH
// emit // emit
@ -195,6 +196,7 @@
// //
const { rows } = await listEvaluation(subjectParams) const { rows } = await listEvaluation(subjectParams)
// //
subjectList.value = sessionStore.get('subject.bookList')
const res = await listEvaluation(unitParams) const res = await listEvaluation(unitParams)
unitList.value = [...res.rows] unitList.value = [...res.rows]
// //