修改,两个房主相互邀请时,跳转房间路径bug的问题
This commit is contained in:
parent
d8b0577c77
commit
eeb69eac26
@ -73,7 +73,8 @@ export default {
|
||||
members: [],
|
||||
stationList: [],
|
||||
standList: [],
|
||||
doorList: []
|
||||
doorList: [],
|
||||
timer: null
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -109,19 +110,27 @@ export default {
|
||||
// 设备信息
|
||||
'$store.state.socket.realDeviceInfo': async function (val) {
|
||||
await this.getStandList();
|
||||
},
|
||||
// 路由切换
|
||||
'$route': async function() {
|
||||
await this.loadInit();
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
await this.loadInit();
|
||||
},
|
||||
methods: {
|
||||
async loadInit() {
|
||||
await this.getRoomInfo();
|
||||
await this.getUserList();
|
||||
await this.getStandList();
|
||||
await this.getStaionList(this.room.mapId);
|
||||
await this.getDoorList(this.room.mapId, this.stationList);
|
||||
this.timeDemon = setInterval(() => {
|
||||
if (this.timer) { clearInterval(this.timer); }
|
||||
this.timer = setInterval(() => {
|
||||
checkLoginLine();
|
||||
}, 5000 * 60);
|
||||
},
|
||||
methods: {
|
||||
async getRoomInfo() {
|
||||
const resp = await postRoomDetail(this.group);
|
||||
this.room = {
|
||||
|
Loading…
Reference in New Issue
Block a user