Browse Source

中文键盘排除

master
maochaoying 2 years ago
parent
commit
a2f51274e6
  1. 8
      .env
  2. 12
      src/components/AddPreSetting.vue
  3. 12
      src/components/UpdatePreSetting.vue
  4. 2
      src/pages/Login.vue

8
.env

@ -1,5 +1,5 @@
# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
VITE_BASE_WS2_URL=ws://127.0.0.1:19002/
# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/

12
src/components/AddPreSetting.vue

@ -685,7 +685,17 @@ onMounted(() => {
document.addEventListener('click', e => {
let box = document.getElementById('keyboard_formula')
let room = document.getElementById('id_formula')
if (!box?.contains(e.target) && e.target != room) {
const arr = [
'hg-candidate-box-next',
'hg-candidate-box-btn-active',
'hg-candidate-box-prev',
'hg-candidate-box-list-item',
]
if (
!box?.contains(e.target) &&
e.target != room &&
!arr.includes(Array.from(e.target.classList)[0])
) {
showkeyboard.value = false
}
})

12
src/components/UpdatePreSetting.vue

@ -735,7 +735,17 @@ onMounted(() => {
document.addEventListener('click', e => {
let box = document.getElementById('keyboard_formula')
let room = document.getElementById('id_formula')
if (!box?.contains(e.target) && e.target != room) {
const arr = [
'hg-candidate-box-next',
'hg-candidate-box-btn-active',
'hg-candidate-box-prev',
'hg-candidate-box-list-item',
]
if (
!box?.contains(e.target) &&
e.target != room &&
!arr.includes(Array.from(e.target.classList)[0])
) {
showkeyboard.value = false
}
})

2
src/pages/Login.vue

@ -6,7 +6,7 @@
:input="input"
:handleHideKey="handleHideKey"
/>
<p class="copyright">CopyRight@ xxxxxx公司</p>
<p class="copyright">CopyRight@ 全思美特</p>
<div class="shutdown">
<!-- <div class="group" @click="shutdown">
<img :src="Shutdown" class="icon" alt="" />

Loading…
Cancel
Save