diff --git a/src/views/login/index.vue b/src/views/login/index.vue index c3c3c19b1..e380ad555 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -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=>{ diff --git a/src/views/newMap/display/terminals/index.vue b/src/views/newMap/display/terminals/index.vue index 7ad77cf0d..ac92402f3 100644 --- a/src/views/newMap/display/terminals/index.vue +++ b/src/views/newMap/display/terminals/index.vue @@ -158,7 +158,9 @@ export default { this.initMemberUserInfo(); this.setCentralizedStationList(map); // 获取集中站列表 if (this.$route.query.client) { - this.pictureChange(this.$route.query.client); + setTimeout(() => { + this.pictureChange(this.$route.query.client); + }, 200); } } } catch (error) {