chenyc
2022-09-30 175cfb761606e7f0f7dea6b19c3c079685461778
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)
            
        })