| | |
| | | cardData:[] |
| | | }; |
| | | }, |
| | | inject:['changeQuestionData'], |
| | | watch:{ |
| | | cardList:{ |
| | | handler(newVal) { |
| | | console.log('11',newVal); |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.cardData = this.cardList |
| | | console.log('this.cardList',this.cardList); |
| | |
| | | }, |
| | | // 保存按钮 |
| | | 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" |
| | | ); |