123
This commit is contained in:
@@ -68,9 +68,11 @@ watch(cameraNumber,(newVal,oldVal)=>{
|
||||
|
||||
})
|
||||
|
||||
const emit = defineEmits(['closeCamera'])
|
||||
const closeCamera = () => {
|
||||
cameraNumber.value = 0
|
||||
emit('closeCamera')
|
||||
|
||||
// 关闭所有连接
|
||||
if (wsOne.value) {
|
||||
wsOne.value.handleClose()
|
||||
@@ -88,7 +90,6 @@ const closeCamera = () => {
|
||||
// import.meta.env.VITE_WB_CAMERA_TWO_URL
|
||||
// )
|
||||
|
||||
const emit = defineEmits(['closeCamera'])
|
||||
// const ws = new WebSocket(import.meta.env.VITE_WB_CAMERA_ONE_URL)
|
||||
onMounted(() => {})
|
||||
// const closeCamera = () => {
|
||||
|
||||
Reference in New Issue
Block a user