|
@@ -9,7 +9,7 @@
|
|
bind:click-right
|
|
bind:click-right
|
|
></van-nav-bar>
|
|
></van-nav-bar>
|
|
<div v-show="activeTabName === 0" class="dropdown-div"></div>
|
|
<div v-show="activeTabName === 0" class="dropdown-div"></div>
|
|
- <transition name="tab" mode="out-in">
|
|
|
|
|
|
+ <transition name="tab" mode="out-in" v-if="initTable">
|
|
<component :is="currentComponents" class="page" />
|
|
<component :is="currentComponents" class="page" />
|
|
</transition>
|
|
</transition>
|
|
<van-tabbar
|
|
<van-tabbar
|
|
@@ -40,7 +40,8 @@ export default {
|
|
components: { PageLearn, PageAnswer, PageExam, PagePerson },
|
|
components: { PageLearn, PageAnswer, PageExam, PagePerson },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- currentComponents: "",
|
|
|
|
|
|
+ initTable: false,
|
|
|
|
+ currentComponents: "pageLearn",
|
|
activeTabName: 0,
|
|
activeTabName: 0,
|
|
tabbars: [
|
|
tabbars: [
|
|
{
|
|
{
|
|
@@ -159,8 +160,7 @@ export default {
|
|
this.currentComponents = this.tabbars[this.activeTabName].pageName;
|
|
this.currentComponents = this.tabbars[this.activeTabName].pageName;
|
|
},
|
|
},
|
|
afterGetUserInfo() {
|
|
afterGetUserInfo() {
|
|
- // 初始化当前也
|
|
|
|
- this.currentComponents = "pageLearn";
|
|
|
|
|
|
+ this.initTable = true;
|
|
// 获取所有收藏
|
|
// 获取所有收藏
|
|
this.getCollection();
|
|
this.getCollection();
|
|
// 获取所有考试历史
|
|
// 获取所有考试历史
|