fix: settings toggle cycles real options (no dot spam); dialog mode default corrected

This commit is contained in:
2026-09-01 22:49:17 +08:00
parent 880bd4011f
commit 1d5d644983
+23 -9
View File
@@ -182,12 +182,26 @@ export default {
token: ''
},
connText: '手机/手表未连接',
modelOptions: ['DeepSeek-V4-Flash','DeepSeek-V4-Pro','deepseek-chat','deepseek-reasoner'],
modelIdx: 0,
modelValue: 'DeepSeek-V4-Flash',
providerOptions: ['DeepSeek 官方','Ollama','OpenAI 兼容','DeepSeek 中转'],
providerIdx: 0,
providerValue: 'DeepSeek 官方',
reasonOptions: ['高','中','低','关闭'],
reasonIdx: 0,
reasonValue: '高',
permOptions: ['Workspace Write','Read Only','Ask Once','Full Access'],
permIdx: 0,
permValue: 'Workspace Write',
dialogModeValue: '深神模式',
watchConnValue: '未连接(占位)',
dialogOptions: ['对话模式','插话模式','深神模式'],
dialogIdx: 0,
dialogModeValue: '对话模式',
connOptions: ['未连接','已连接'],
connIdx: 0,
watchConnValue: '未连接',
serverOptions: ['ws://127.0.0.1:8787','ws://frp-host:18321'],
serverIdx: 0,
serverValue: 'ws://127.0.0.1:8787',
showFontPicker: false,
fontValue: 18,
@@ -269,13 +283,13 @@ export default {
this.inputText = e && e.value || ''
},
toggleModel() { this.modelValue += ' ·' },
toggleProvider() { this.providerValue += ' ·' },
toggleReason() { this.reasonValue += ' ·' },
togglePerm() { this.permValue += ' ·' },
toggleDialog() { this.dialogModeValue += ' ·' },
toggleWatchConn() { this.watchConnValue += ' ·' },
toggleServer() { this.serverValue += ' ·' },
toggleModel() { this.modelIdx = (this.modelIdx + 1) % this.modelOptions.length; this.modelValue = this.modelOptions[this.modelIdx] },
toggleProvider() { this.providerIdx = (this.providerIdx + 1) % this.providerOptions.length; this.providerValue = this.providerOptions[this.providerIdx] },
toggleReason() { this.reasonIdx = (this.reasonIdx + 1) % this.reasonOptions.length; this.reasonValue = this.reasonOptions[this.reasonIdx] },
togglePerm() { this.permIdx = (this.permIdx + 1) % this.permOptions.length; this.permValue = this.permOptions[this.permIdx] },
toggleDialog() { this.dialogIdx = (this.dialogIdx + 1) % this.dialogOptions.length; this.dialogModeValue = this.dialogOptions[this.dialogIdx] },
toggleWatchConn() { this.connIdx = (this.connIdx + 1) % this.connOptions.length; this.watchConnValue = this.connOptions[this.connIdx] },
toggleServer() { this.serverIdx = (this.serverIdx + 1) % this.serverOptions.length; this.serverValue = this.serverOptions[this.serverIdx] },
openFontPicker() {
this.showFontPicker = true