feat:对接消息相关接口
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<box1 />
|
||||
<box2 />
|
||||
<box2 @switch-spot="switchSpot" />
|
||||
<box3 />
|
||||
</template>
|
||||
|
||||
@@ -22,10 +22,20 @@
|
||||
JSON.stringify({
|
||||
action: 'start',
|
||||
type: 'index',
|
||||
scenitspot: 'index'
|
||||
scenicSpot: '4'
|
||||
})
|
||||
)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
const switchSpot = (e) => {
|
||||
sendMessage(
|
||||
JSON.stringify({
|
||||
action: 'start',
|
||||
type: 'index',
|
||||
scenicSpot: e
|
||||
})
|
||||
)
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user