@@ -202,7 +202,7 @@
},
/* 跳转到首页 */
goHome() {
- localStorage.setItem('singleUserInfo', '2');
+ // localStorage.setItem('singleUserInfo', '2');
this.$router.push(this.$route?.query?.from ?? '/').catch(() => {});
/* 更换图形验证码 */
@@ -360,7 +360,13 @@
mounted() {
this.getChooseEngrave();
- this.getTeamList(this.$store.state.user.info.teamId);
+ if (localStorage.getItem('singleUserInfo') == '1') {
+ const data = JSON.parse(localStorage.getItem('chooseUserInfo'));
+ this.getTeamList(data.teamId);
+ } else {
+ this.getTeamList(this.$store.state.user.info.teamId);
+ }
+ // this.getTeamList(this.$store.state.user.info.teamId);
methods: {
@@ -592,7 +592,12 @@
@@ -602,7 +602,13 @@