优化样式;

This commit is contained in:
毛鹏
2025-11-10 10:34:42 +08:00
parent 270942ab95
commit 4f5e07847c

View File

@@ -38,6 +38,7 @@
// 导入联系作者组件
import ContactAuthor from '@/views/index/components/ContactAuthor.vue'
import { md5 } from 'js-md5'
const userStore = useUserStore()
const options = [
@@ -108,7 +109,7 @@
}
if (!socket.value) {
socket.value = new WebSocket(
`${webSocketURL}username=${userStore.userName}&password=${userStore.password}`
`${webSocketURL}username=${userStore.userName}&password=${md5(userStore.password)}`
)
}
socket.value.binaryType = 'arraybuffer'
@@ -184,7 +185,7 @@
connectWebSocket()
}
})
const visible = ref(false)
const visible = ref(import.meta.env.VITE_IS_INDEX_WINDOW == 'true')
onMounted(() => {})
</script>