From 56efc39c0a00d43a0916c5fe449659320c75b780 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期五, 27 十二月 2024 15:24:05 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/assets/methods/examination.js | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/assets/methods/examination.js b/src/assets/methods/examination.js index e4c2cd1..fb14270 100644 --- a/src/assets/methods/examination.js +++ b/src/assets/methods/examination.js @@ -1,9 +1,11 @@ import MG from "@/assets/js/middleGround/WebMiddleGroundApi"; +import {tokenKey} from '@/assets/js/config' import getPublicImage from "@/assets/js/middleGround/tool"; // 鑾峰彇棰樼洰鍒楄〃 const getQuestionList = async (page, questionList, activeBook) => { -const collectList = await getCollectList(activeBook) -console.log('鏀惰棌鍒楄〃',collectList); +const token = localStorage.getItem(tokenKey) +let collectList = [] +if(token) collectList = await getCollectList(activeBook) const oldAnswerData = localStorage.getItem(activeBook.name + "oldAnswerData"); let oldData = null; let oldList = []; @@ -259,6 +261,7 @@ .catch(() => { console.log('鑾峰彇鏀惰棌鎶ラ敊'); }) + console.log('鏀惰棌鏁版嵁',allCollect.find(item => item.type == 'bits').collectList) return allCollect.find(item => item.type == 'bits').collectList } const getQuestionData = async (chapter, chapterData, activeBook) => { -- Gitblit v1.9.1