feat:完善功能

This commit is contained in:
zjc
2025-01-20 04:09:56 +08:00
parent 46c737fb93
commit 65244492b4
40 changed files with 2303 additions and 797 deletions

View File

@@ -9,14 +9,14 @@
import box2 from './components/box-2.vue'
import box3 from './components/box-3.vue'
import { useWebSocket } from '@/hooks/socket'
import { useHomeStore } from '@/stores/home'
import { useWebSocket } from '@/hooks/socket'
import { mode, socketBaseUrl, proSocketBaseUrl } from '@/utils/config'
const homeStore = useHomeStore()
const { isConnected, dataRes, sendMessage } = useWebSocket(
`${mode == 'dev' ? socketBaseUrl : proSocketBaseUrl}/ws/third-party`
)
const homeStore = useHomeStore()
watch(
() => isConnected.value,
@@ -26,7 +26,7 @@
JSON.stringify({
action: 'start',
type: 'index',
scenicSpot: '4'
scenicSpot: ''
})
)
}