|
@@ -15,6 +15,8 @@ import {
|
|
|
toast
|
|
|
} from "@/utils/common.js"
|
|
|
import * as httpUnit from "@/api/unitTest.js"
|
|
|
+import {getXueke} from "@/utils/cacheManager.js"
|
|
|
+
|
|
|
|
|
|
function useJifen() {
|
|
|
const data = reactive({
|
|
@@ -39,6 +41,7 @@ function useJifen() {
|
|
|
export function useExam() {
|
|
|
const { showTishi, handleCloseTishi, handleShowTishi} = useTishiLeftRight()
|
|
|
const {rightAnswer,wrongAnswer,jifen, updateJifen} = useJifen();
|
|
|
+ const {getXueke} = getXueke();
|
|
|
const data = reactive({
|
|
|
count: 0, // 已答题数
|
|
|
total: 0, // 总题数
|
|
@@ -49,10 +52,10 @@ export function useExam() {
|
|
|
nianji: null,
|
|
|
xueke: null,
|
|
|
})
|
|
|
-
|
|
|
+ const {xueke} = getXueke();
|
|
|
onLoad((options) => {
|
|
|
const {
|
|
|
- jieId,zhangId,nianji,xueke
|
|
|
+ jieId,zhangId,nianji
|
|
|
} = options;
|
|
|
data.jieId = jieId; // 需要路由参数 节Id
|
|
|
data.zhangId = zhangId;// 需要路由参数 章Id
|