|
@@ -71,7 +71,8 @@ export default {
|
|
localStorage.removeItem('menupath');
|
|
localStorage.removeItem('menupath');
|
|
localStorage.removeItem('ms_username');
|
|
localStorage.removeItem('ms_username');
|
|
this.$store.commit('setloginInfo', '');
|
|
this.$store.commit('setloginInfo', '');
|
|
- sessionStorage.removeItem('tabs');
|
|
|
|
|
|
+ // sessionStorage.removeItem('tabs');
|
|
|
|
+ sessionStorage.clear();
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/login'
|
|
path: '/login'
|
|
});
|
|
});
|
|
@@ -119,7 +120,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getNavList() {
|
|
getNavList() {
|
|
- this.$http.get('/user-center/user/findUserFirstMenu').then(({ status, data, msg }) => {
|
|
|
|
|
|
+ this.$http.get('/sc-user-center/user/findUserFirstMenu').then(({ status, data, msg }) => {
|
|
if (0 === status) {
|
|
if (0 === status) {
|
|
if (data && data.length > 10) {
|
|
if (data && data.length > 10) {
|
|
let newdata = data.slice(0, 10);
|
|
let newdata = data.slice(0, 10);
|
|
@@ -154,20 +155,15 @@ export default {
|
|
this.toggleTenant();
|
|
this.toggleTenant();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- window.sessionStorage.setItem('datas', JSON.stringify(this.selectDta));
|
|
|
|
- this.$router.push({
|
|
|
|
- path: '/nav',
|
|
|
|
- query: {
|
|
|
|
- phone: item.phone,
|
|
|
|
- tenantId: item.tenantId
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ window.sessionStorage.setItem('loginJson', JSON.stringify(this.selectDta));
|
|
|
|
+ window.sessionStorage.setItem('loginJsonActive', JSON.stringify(item));
|
|
this.getlogin();
|
|
this.getlogin();
|
|
},
|
|
},
|
|
getlogin() {
|
|
getlogin() {
|
|
this.isSelectTenant = false;
|
|
this.isSelectTenant = false;
|
|
- let { phone, tenantId } = this.$route.query;
|
|
|
|
- this.selectDta = JSON.parse(window.sessionStorage.getItem('datas'));
|
|
|
|
|
|
+ // let { phone, tenantId } = this.$route.query;
|
|
|
|
+ this.selectDta = JSON.parse(window.sessionStorage.getItem('loginJson'));
|
|
|
|
+ let { phone, tenantId } = JSON.parse(window.sessionStorage.getItem('loginJsonActive'));
|
|
this.selectDta.map((item, index) => {
|
|
this.selectDta.map((item, index) => {
|
|
if (item.tenantId == tenantId) {
|
|
if (item.tenantId == tenantId) {
|
|
this.tenantName = item.tenantName;
|
|
this.tenantName = item.tenantName;
|