feat: wire watch pages to @system.interconnect bridge
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
<script>
|
||||
import router from '@system.router'
|
||||
import bridge from '../../common/bridge.js'
|
||||
|
||||
export default {
|
||||
private: {
|
||||
@@ -27,13 +28,11 @@ export default {
|
||||
},
|
||||
sendQuick(index) {
|
||||
const item = this.quick[index]
|
||||
// 空壳:后续通过 interconnect 发给手机/服务器
|
||||
console.log('quick send', item)
|
||||
bridge.sendCommand({ kind: 'quick', quick: item, content: item })
|
||||
this.text = item
|
||||
},
|
||||
sendText() {
|
||||
// 空壳:后续通过 interconnect 发送
|
||||
console.log('send text', this.text)
|
||||
bridge.sendText(this.text)
|
||||
},
|
||||
goBack() {
|
||||
router.back()
|
||||
|
||||
Reference in New Issue
Block a user