修改项目设备登录问题

This commit is contained in:
dong 2022-12-28 10:21:41 +08:00
parent edadc872ed
commit df53224447
2 changed files with 5 additions and 2 deletions

View File

@ -271,10 +271,11 @@ export default {
const group = resp.data; const group = resp.data;
getLoginInfo(getToken()).then(resp => { getLoginInfo(getToken()).then(resp => {
const deviceVO = resp.data.deviceVO; const deviceVO = resp.data.deviceVO;
const accountVO = resp.data.accountVO;
if (deviceVO) { if (deviceVO) {
const config = JSON.parse(deviceVO.config || '{}'); const config = JSON.parse(deviceVO.config || '{}');
if (config && config.roleCode) { if (config && config.roleCode) {
const params = [{userId: res.id, memberId:config.roleCode}]; const params = [{userId: accountVO.id, memberId:config.roleCode}];
assignUsersPlayRoles(params, group).then(() => { assignUsersPlayRoles(params, group).then(() => {
this.enterSimulation(group, mapId, config); this.enterSimulation(group, mapId, config);
}).catch(res=>{ }).catch(res=>{

View File

@ -158,7 +158,9 @@ export default {
this.initMemberUserInfo(); this.initMemberUserInfo();
this.setCentralizedStationList(map); // this.setCentralizedStationList(map); //
if (this.$route.query.client) { if (this.$route.query.client) {
this.pictureChange(this.$route.query.client); setTimeout(() => {
this.pictureChange(this.$route.query.client);
}, 200);
} }
} }
} catch (error) { } catch (error) {