|
@@ -108,8 +108,14 @@ export default {
|
|
|
if (this.config.length == 0) {//登录进去返回到列表页,扫码返回到开始页
|
|
|
let scan = localStorage.getItem('scan');
|
|
|
let params = JSON.parse(localStorage.getItem('infoParam'));
|
|
|
+ let param = JSON.parse(localStorage.getItem('loginParam'));
|
|
|
+ let data = JSON.parse(localStorage.getItem('loginData'));
|
|
|
if(!scan){
|
|
|
- this.$router.replace({path:'/department'});
|
|
|
+ if(data.length>1){
|
|
|
+ this.$router.replace({path:'/department'});
|
|
|
+ }else{
|
|
|
+ this.$router.replace({path:'/home',query:param});
|
|
|
+ }
|
|
|
}else{
|
|
|
this.$router.replace({path:'/home',query:Object.assign({}, params,{scan:true})});
|
|
|
}
|