fix: settings toggle cycles real options (no dot spam); dialog mode default corrected
This commit is contained in:
@@ -182,12 +182,26 @@ export default {
|
|||||||
token: ''
|
token: ''
|
||||||
},
|
},
|
||||||
connText: '手机/手表未连接',
|
connText: '手机/手表未连接',
|
||||||
|
modelOptions: ['DeepSeek-V4-Flash','DeepSeek-V4-Pro','deepseek-chat','deepseek-reasoner'],
|
||||||
|
modelIdx: 0,
|
||||||
modelValue: 'DeepSeek-V4-Flash',
|
modelValue: 'DeepSeek-V4-Flash',
|
||||||
|
providerOptions: ['DeepSeek 官方','Ollama','OpenAI 兼容','DeepSeek 中转'],
|
||||||
|
providerIdx: 0,
|
||||||
providerValue: 'DeepSeek 官方',
|
providerValue: 'DeepSeek 官方',
|
||||||
|
reasonOptions: ['高','中','低','关闭'],
|
||||||
|
reasonIdx: 0,
|
||||||
reasonValue: '高',
|
reasonValue: '高',
|
||||||
|
permOptions: ['Workspace Write','Read Only','Ask Once','Full Access'],
|
||||||
|
permIdx: 0,
|
||||||
permValue: 'Workspace Write',
|
permValue: 'Workspace Write',
|
||||||
dialogModeValue: '深神模式',
|
dialogOptions: ['对话模式','插话模式','深神模式'],
|
||||||
watchConnValue: '未连接(占位)',
|
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',
|
serverValue: 'ws://127.0.0.1:8787',
|
||||||
showFontPicker: false,
|
showFontPicker: false,
|
||||||
fontValue: 18,
|
fontValue: 18,
|
||||||
@@ -269,13 +283,13 @@ export default {
|
|||||||
this.inputText = e && e.value || ''
|
this.inputText = e && e.value || ''
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleModel() { this.modelValue += ' ·' },
|
toggleModel() { this.modelIdx = (this.modelIdx + 1) % this.modelOptions.length; this.modelValue = this.modelOptions[this.modelIdx] },
|
||||||
toggleProvider() { this.providerValue += ' ·' },
|
toggleProvider() { this.providerIdx = (this.providerIdx + 1) % this.providerOptions.length; this.providerValue = this.providerOptions[this.providerIdx] },
|
||||||
toggleReason() { this.reasonValue += ' ·' },
|
toggleReason() { this.reasonIdx = (this.reasonIdx + 1) % this.reasonOptions.length; this.reasonValue = this.reasonOptions[this.reasonIdx] },
|
||||||
togglePerm() { this.permValue += ' ·' },
|
togglePerm() { this.permIdx = (this.permIdx + 1) % this.permOptions.length; this.permValue = this.permOptions[this.permIdx] },
|
||||||
toggleDialog() { this.dialogModeValue += ' ·' },
|
toggleDialog() { this.dialogIdx = (this.dialogIdx + 1) % this.dialogOptions.length; this.dialogModeValue = this.dialogOptions[this.dialogIdx] },
|
||||||
toggleWatchConn() { this.watchConnValue += ' ·' },
|
toggleWatchConn() { this.connIdx = (this.connIdx + 1) % this.connOptions.length; this.watchConnValue = this.connOptions[this.connIdx] },
|
||||||
toggleServer() { this.serverValue += ' ·' },
|
toggleServer() { this.serverIdx = (this.serverIdx + 1) % this.serverOptions.length; this.serverValue = this.serverOptions[this.serverIdx] },
|
||||||
|
|
||||||
openFontPicker() {
|
openFontPicker() {
|
||||||
this.showFontPicker = true
|
this.showFontPicker = true
|
||||||
|
|||||||
Reference in New Issue
Block a user