修改项目设备登录问题
This commit is contained in:
parent
edadc872ed
commit
df53224447
@ -271,10 +271,11 @@ export default {
|
||||
const group = resp.data;
|
||||
getLoginInfo(getToken()).then(resp => {
|
||||
const deviceVO = resp.data.deviceVO;
|
||||
const accountVO = resp.data.accountVO;
|
||||
if (deviceVO) {
|
||||
const config = JSON.parse(deviceVO.config || '{}');
|
||||
if (config && config.roleCode) {
|
||||
const params = [{userId: res.id, memberId:config.roleCode}];
|
||||
const params = [{userId: accountVO.id, memberId:config.roleCode}];
|
||||
assignUsersPlayRoles(params, group).then(() => {
|
||||
this.enterSimulation(group, mapId, config);
|
||||
}).catch(res=>{
|
||||
|
@ -158,7 +158,9 @@ export default {
|
||||
this.initMemberUserInfo();
|
||||
this.setCentralizedStationList(map); // 获取集中站列表
|
||||
if (this.$route.query.client) {
|
||||
setTimeout(() => {
|
||||
this.pictureChange(this.$route.query.client);
|
||||
}, 200);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user