From 175cfb761606e7f0f7dea6b19c3c079685461778 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 30 九月 2022 10:53:21 +0800
Subject: [PATCH] up123
---
src/views/home/index.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index d8a0e30..cca3d57 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -31,7 +31,7 @@
const AudioRef4=ref()
const AudioRef5=ref()
const isLink = computed(() => {
- return !sockte.isLink
+ return sockte.isLink
})
const netLink = computed(() => {
return !sockte.netLink
@@ -164,7 +164,7 @@
// AudioRef2.value.play()
if (patientInfo.value.id === 0) {
AudioRef0.value.play()
- inputRef.value.focus();
+ // inputRef.value.focus();
}
else {
@@ -197,7 +197,7 @@
}
if (patientInfo.value.id === 0) {
AudioRef0.value.play()
- inputRef.value.focus();
+ // inputRef.value.focus();
settime()
} else {
AudioRef3.value.play()
@@ -250,10 +250,12 @@
onMounted(() => {
console.log('页面初始化', os.hostname())
state.haodu=(document.documentElement.clientHeight-180)/2+'px'
-
state.clockNum = patientInfoStore().viewNumber
setInterval(function () {
+ if(isLink.value){
+ console.log('sockte链接成功指标指向input',isLink.value)
inputRef.value.focus();
+ }
}, 1000)
})
--
Gitblit v1.8.0