From 82df6ffb8981d27c4d2fa8388595b52972aef0b1 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 07 六月 2024 15:17:32 +0800 Subject: [PATCH] 题目请求取消token --- src/components/examinations/index.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index 753822b..9e462e0 100644 --- a/src/components/examinations/index.vue +++ b/src/components/examinations/index.vue @@ -445,6 +445,13 @@ cardData:[] }; }, + watch:{ + cardList:{ + handler(newVal) { + console.log('11',newVal); + } + } + }, mounted() { this.cardData = this.cardList console.log('this.cardList',this.cardList); @@ -566,13 +573,13 @@ }, // 淇濆瓨鎸夐挳 saveAnswer() { - const element = document.getElementsByClassName("examination")[0]; + const element = (this.container ? this.container : document + ).querySelector(".examination"); if (element) { const pageNum = this.getParentWithClass( element, "page-box" ).getAttribute("page"); - console.log(this.config.activeBook.name, pageNum); const oldAnswerData = localStorage.getItem( this.config.activeBook.name + "oldAnswerData" ); -- Gitblit v1.9.1