From 62a6b29d24207428219882556c77ffb5941b7943 Mon Sep 17 00:00:00 2001 From: unknown <qq1940665526@163.com> Date: 星期三, 12 六月 2024 11:07:19 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/components/examinations/index.vue | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index 9e462e0..4998f9c 100644 --- a/src/components/examinations/index.vue +++ b/src/components/examinations/index.vue @@ -1,5 +1,5 @@ <template> - <div class="examination" v-loading="!cardData.length"> + <div class="examination" v-loading="loading"> <div v-for="(item, nindex) in cardData" :key="nindex" @@ -442,20 +442,27 @@ return { type: "option", loading: false, - cardData:[] + cardData:[], + loading:true }; }, watch:{ cardList:{ handler(newVal) { console.log('11',newVal); - } + this.cardData = this.cardList + if(newVal && newVal.length) { + this.loading = false + } + }, + immediate:true, + deep:true } }, mounted() { - this.cardData = this.cardList - console.log('this.cardList',this.cardList); - console.log('this.cardData',this.cardData); + // this.cardData = this.cardList + // console.log('this.cardList',this.cardList); + // console.log('this.cardData',this.cardData); }, methods: { // 鏁扮粍杞负瀛楃涓叉柟娉� -- Gitblit v1.9.1