@@ -40,7 +40,7 @@ export default {
components: { PageLearn, PageAnswer, PageExam, PagePerson },
data() {
return {
- currentComponents: "pageLearn",
+ currentComponents: "",
activeTabName: 0,
tabbars: [
{
@@ -159,6 +159,8 @@ export default {
this.currentComponents = this.tabbars[this.activeTabName].pageName;
},
afterGetUserInfo() {
+ // 初始化当前也
+ this.currentComponents = "pageLearn";
// 获取所有收藏
this.getCollection();
// 获取所有考试历史