From fae5df1d3f1ae875ac546cacfb4744b2e8230ca2 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期一, 29 七月 2024 11:07:24 +0800 Subject: [PATCH] 修改了bug --- ruoyi-ui/src/views/meeting/Home.vue | 41 ++++++++++++++++++++++++++++++++++++----- 1 files changed, 36 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/meeting/Home.vue b/ruoyi-ui/src/views/meeting/Home.vue index 9144f00..337d8e3 100644 --- a/ruoyi-ui/src/views/meeting/Home.vue +++ b/ruoyi-ui/src/views/meeting/Home.vue @@ -91,8 +91,33 @@ }; }, created() { - this.getUser(); this.getRoomId(); + this.getUser(); + }, + +computed: { + isStartExercise() { + let roomId = this.roomId + let userId = this.userId; + return { roomId, userId }; + } +}, + +watch: { + + isStartExercise: { + immediate: true, + handler(n) { + if (n.roomId && n.userId) { + // 鍒ゆ柇杩欎袱涓�煎悓鏃跺瓨鍦� + // alert(this.userId) + // alert(this.roomId) + this.loading = false; + this.showComponent = true; + } + }, + } + }, methods: { // 鑾峰彇鎴块棿鍙� @@ -108,11 +133,17 @@ this.user = response.data; this.userId = this.user.nickName // alert(this.userId) + // alert(this.roomId) }); - setTimeout(() => { - this.loading = false; - this.showComponent = true; - }, 3000); + // setTimeout(() => { + // this.loading = false; + // this.showComponent = true; + // }, 5000); + // if(this.userId !== '' && this.roomId !== ''){ + // alert(123) + // this.loading = false; + // this.showComponent = true; + // } }, handleValueChange(value, key) { -- Gitblit v1.9.1