feat: wire watch pages to @system.interconnect bridge
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
<script>
|
||||
import router from '@system.router'
|
||||
import bridge from '../../common/bridge.js'
|
||||
|
||||
export default {
|
||||
private: {
|
||||
@@ -31,8 +32,7 @@ export default {
|
||||
onUserChange(e) { this.userId = e && e.value || '' },
|
||||
onTokenChange(e) { this.token = e && e.value || '' },
|
||||
save() {
|
||||
// 空壳:后续持久化并与 index 页同步
|
||||
console.log('save settings', this.serverUrl, this.userId)
|
||||
bridge.sendSettings({ serverUrl: this.serverUrl, userId: this.userId, token: this.token })
|
||||
},
|
||||
goBack() {
|
||||
router.back()
|
||||
|
||||
Reference in New Issue
Block a user