679
chenyc
2022-09-27 efb29dd72dfb4349869d0e7459490309ab47a2c1
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()
@@ -253,7 +253,10 @@
            state.clockNum = patientInfoStore().viewNumber
            setInterval(function () {
              if(isLink.value){
                // console.log('sockte链接成功指标指向input',isLink.value)
                inputRef.value.focus();
              }
            }, 1000)
            
        })