Commit 37a55885 authored by 陈娇's avatar 陈娇

侧边栏修改Test

parent dd43761b
Pipeline #3022 passed with stage
in 0 seconds
......@@ -35,7 +35,7 @@ export class LoginComponent implements OnInit {
if (data.constructor === Object) {
if (data.code === 1) {
window.sessionStorage.setItem('_AMap_AMap.MapInner', data.message);
this.router.navigate(['app/home']);
this.router.navigate(['app/deviceCenter/gatewayMgr']);
this.getCurUser();
} else {
this.message.error(data.message);
......
......@@ -88,8 +88,8 @@ export class PermissionService {
window.sessionStorage.setItem(encodeURIComponent('_AMap_AMap.OuterEnterKey'), this.transform(permissionCheckJson));
const funcCheckJson = JSON.stringify(this.functions);
window.sessionStorage.setItem(encodeURIComponent('_AMap_AMap.InterEnterKey'), this.transform(funcCheckJson));
if (permissionCheckJson.indexOf('home') && type === 'login') {
this.router.navigate(['app/home']);
if (permissionCheckJson.indexOf('gatewayMgr') && type === 'login') {
this.router.navigate(['app/deviceCenter/gatewayMgr']);
} else {
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