|
@@ -67,31 +67,30 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.$store.commit("updateUserItemStore", {
|
|
|
- field: "userInfo",
|
|
|
- value: {
|
|
|
- id: "testuser-ztdxxDGdNj",
|
|
|
- encodedPassword: "string",
|
|
|
- userStatus: "suspended",
|
|
|
- userName: "testuser-ztdxxDGdNj",
|
|
|
- email: "test@gmail.com",
|
|
|
- firstName: "一",
|
|
|
- lastName: "张",
|
|
|
- studyId: "U00000",
|
|
|
- phone: "13060901234",
|
|
|
- nickName: "小强"
|
|
|
- }
|
|
|
- });
|
|
|
- this.activeTabName = 0;
|
|
|
- this.currentComponents = this.tabbars[this.activeTabName].pageName;
|
|
|
+ this.initFun();
|
|
|
},
|
|
|
methods: {
|
|
|
+ initFun() {
|
|
|
+ this.$store.commit("updateUserItemStore", {
|
|
|
+ field: "userInfo",
|
|
|
+ value: {
|
|
|
+ id: "testuser-ztdxxDGdNj",
|
|
|
+ encodedPassword: "string",
|
|
|
+ userStatus: "suspended",
|
|
|
+ userName: "testuser-ztdxxDGdNj",
|
|
|
+ email: "test@gmail.com",
|
|
|
+ firstName: "一",
|
|
|
+ lastName: "张",
|
|
|
+ studyId: "U00000",
|
|
|
+ phone: "13060901234",
|
|
|
+ nickName: "小强"
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.activeTabName = 0;
|
|
|
+ this.currentComponents = this.tabbars[this.activeTabName].pageName;
|
|
|
+ },
|
|
|
onChange(index) {
|
|
|
this.currentComponents = this.tabbars[this.activeTabName].pageName;
|
|
|
- // if (this.current !== pageName) {
|
|
|
- // this.current = pageName;
|
|
|
- // this.$router.replace({ name: "home", query: { page: pageName } });
|
|
|
- // }
|
|
|
}
|
|
|
}
|
|
|
};
|