From 901b6fdb2d917c07e38c791a4da5d328f5cd6f96 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 15 Jan 2024 17:14:09 +0800 Subject: [PATCH] fix --- src/component/HomePage/RobotAssist.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/component/HomePage/RobotAssist.vue b/src/component/HomePage/RobotAssist.vue index dbc6b179..fa74bbf8 100644 --- a/src/component/HomePage/RobotAssist.vue +++ b/src/component/HomePage/RobotAssist.vue @@ -131,6 +131,9 @@ export default defineComponent({ driver:false, }) this.textScroll() + this.$nextTick().then(()=>{ + driverObj__.refresh(); + }) setTimeout(() => { this.record.push({ state:1, @@ -138,6 +141,9 @@ export default defineComponent({ driver:true, }) this.textScroll() + this.$nextTick().then(()=>{ + driverObj__.refresh(); + }) }, 1000); this.driver__Time = setInterval(() => { @@ -341,7 +347,8 @@ export default defineComponent({ this.chatCentent = "" }, setDriver(index:number){ - // let isBeginner = JSON.parse((getCookie('isBeginner') as any)) + let isBeginner = JSON.parse((getCookie('isBeginner') as any)) + if(this.driver__.driver){ driverObj__.moveNext(); this.robotTop = false