| | |
| | | props: { |
| | | cardList: { |
| | | type: Array, |
| | | default: [], |
| | | }, |
| | | primaryColor: { |
| | | type: String, |
| | |
| | | cardData:[] |
| | | }; |
| | | }, |
| | | inject:['changeQuestionData'], |
| | | watch:{ |
| | | cardList:{ |
| | | handler(newVal) { |
| | | console.log('11',newVal); |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.cardData = this.cardList |
| | | console.log('this.cardList',this.cardList); |
| | |
| | | } |
| | | if(oldData[pageNum]) { |
| | | oldData[pageNum] = oldData[pageNum].filter(citem => asnwerList.findIndex(ditem => ditem.id == citem.id) == -1 ) |
| | | oldData[pageNum].push(asnwerList) |
| | | oldData[pageNum].push(...asnwerList) |
| | | } else { |
| | | oldData[pageNum] = asnwerList |
| | | } |