feat: wire watch pages to @system.interconnect bridge

This commit is contained in:
2026-09-01 18:50:32 +08:00
parent 9694f69579
commit a4bc6cffc3
4 changed files with 115 additions and 27 deletions
+2 -2
View File
@@ -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()