diff --git a/src/views/components/footerPhone.vue b/src/views/components/footerPhone.vue index 52ebbb6f..94513741 100644 --- a/src/views/components/footerPhone.vue +++ b/src/views/components/footerPhone.vue @@ -73,7 +73,7 @@ export default { async mounted() { this.roomId = this.$route.query.roomId; let roleFlag = this.$route.query.flag; - this.roleFlag = roleFlag; + this.roleFlag = roleFlag || false; if (roleFlag) { await this.startVideoFn(); } diff --git a/src/views/room.vue b/src/views/room.vue index a2567da9..2422de7f 100644 --- a/src/views/room.vue +++ b/src/views/room.vue @@ -1,7 +1,7 @@