Commit dd43761b authored by 陈娇's avatar 陈娇

test_侧边栏

parent 59100f9e
Pipeline #3021 passed with stage
in 0 seconds
...@@ -35,7 +35,7 @@ export class LoginComponent implements OnInit { ...@@ -35,7 +35,7 @@ export class LoginComponent implements OnInit {
if (data.constructor === Object) { if (data.constructor === Object) {
if (data.code === 1) { if (data.code === 1) {
window.sessionStorage.setItem('_AMap_AMap.MapInner', data.message); window.sessionStorage.setItem('_AMap_AMap.MapInner', data.message);
this.router.navigate(['app/deviceCenter/gatewayMgr']); this.router.navigate(['app/home']);
this.getCurUser(); this.getCurUser();
} else { } else {
this.message.error(data.message); this.message.error(data.message);
......
...@@ -89,7 +89,7 @@ export class PermissionService { ...@@ -89,7 +89,7 @@ export class PermissionService {
const funcCheckJson = JSON.stringify(this.functions); const funcCheckJson = JSON.stringify(this.functions);
window.sessionStorage.setItem(encodeURIComponent('_AMap_AMap.InterEnterKey'), this.transform(funcCheckJson)); window.sessionStorage.setItem(encodeURIComponent('_AMap_AMap.InterEnterKey'), this.transform(funcCheckJson));
if (permissionCheckJson.indexOf('home') && type === 'login') { if (permissionCheckJson.indexOf('home') && type === 'login') {
this.router.navigate(['app/deviceCenter/gatewayMgr']); this.router.navigate(['app/home']);
} else { } else {
this.router.navigate(['extra/login']); this.router.navigate(['extra/login']);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment