|
@@ -122,7 +122,14 @@ export default {
|
|
|
.catch(() => {
|
|
|
this.$store.commit("toggleLoading", false);
|
|
|
});
|
|
|
+ this.afterGetUserInfo();
|
|
|
}
|
|
|
+ },
|
|
|
+ // 操作:切换tab
|
|
|
+ onChangeTabFun(index) {
|
|
|
+ this.currentComponents = this.tabbars[this.activeTabName].pageName;
|
|
|
+ },
|
|
|
+ afterGetUserInfo() {
|
|
|
// 获取所有收藏
|
|
|
this.getCollection();
|
|
|
// 获取所有考试历史
|
|
@@ -132,10 +139,6 @@ export default {
|
|
|
this.activeTabName = 0;
|
|
|
this.onChangeTabFun(this.activeTabName);
|
|
|
},
|
|
|
- // 操作:切换tab
|
|
|
- onChangeTabFun(index) {
|
|
|
- this.currentComponents = this.tabbars[this.activeTabName].pageName;
|
|
|
- },
|
|
|
// 获取所有收藏
|
|
|
getCollection() {
|
|
|
let path = {
|
|
@@ -266,6 +269,7 @@ export default {
|
|
|
value: res.data
|
|
|
});
|
|
|
console.log("蓝信用户信息---" + JSON.stringify(res));
|
|
|
+ this.afterGetUserInfo();
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$store.commit("toggleLoading", false);
|