feat:重新对接首页接口
This commit is contained in:
@@ -10,14 +10,13 @@
|
||||
import box3 from './components/box-3.vue'
|
||||
import { useWebSocket } from '@/hooks/socket'
|
||||
|
||||
const { data, isConnected, sendMessage } = useWebSocket('ws://36.138.38.16:81/ws/third-party')
|
||||
|
||||
provide('homeData', data)
|
||||
const { isConnected, sendMessage } = useWebSocket('ws://36.138.38.16:81/ws/third-party')
|
||||
|
||||
watch(
|
||||
() => isConnected.value,
|
||||
(val) => {
|
||||
if (val) {
|
||||
console.log('--------------------------------------------')
|
||||
sendMessage(
|
||||
JSON.stringify({
|
||||
action: 'start',
|
||||
|
||||
Reference in New Issue
Block a user