设置参考
全部 38 项用户偏好设置
这些设置来自 src/stores/user-perfs.ts 中定义的 Perfs 接口:
| 分组 | 设置项 | 默认值 | 控制内容 |
|---|---|---|---|
| 外观 | darkMode | 'auto' | 跟随系统 / 浅色 / 深色 |
| 外观 | themeHue | 300 | Material 配色的色相值 0-360(用于头像生成器和强调色) |
| Provider | provider | null | 全局默认 provider |
| Provider | model | null | 全局默认模型 |
| Provider | systemProvider | null | System Assistant 使用的 provider |
| Provider | systemModel | null | System Assistant 使用的模型 |
| Provider | userAvatar | { type: 'text', text: 'U', hue: 300 } | 你的头像(文本 / SVG / URL / icon / image) |
| Provider | commonModelOptions | [] | 会出现在对话页快速切换下拉框中的常用模型 id 列表 |
| 行为 | autoGenTitle | true | 首轮对话后自动生成会话标题 |
| 行为 | sendKey | 'ctrl+enter' | 发送消息快捷键(4 种组合) |
| 行为 | messageSelectionBtn | true | 选中文本时是否显示工具栏 |
| 行为 | codePasteOptimize | true | 粘贴从 VSCode 复制来的代码时,自动包进 markdown code fence |
| UI | dialogScrollBtn | 'always' | 快速滚动按钮是否显示(always/desktop-only/mobile-only/never) |
| UI | enableShortcutKey | 'desktop-only' | 是否整体启用键盘快捷键 |
| UI | autoFocusDialogInput | 'desktop-only' | 打开对话时是否自动聚焦输入框 |
| UI | streamingLockBottom | true | 流式输出时是否自动锁定到底部 |
| UI | streamRenderLevel | 100 | 0/25/50/75/100 —— 生成过程中的实时渲染强度 |
| UI | messageCatalog | true | 宽屏下是否显示消息目录 |
| UI | showWarnings | false | 是否把 API warning 文本显示在回复里 |
| UI | userInputDebounce | 30 | 输入防抖毫秒数(如果打字时内容被覆盖,可适当调高) |
| UI | expandReasoningContent | true | 是否自动展开 reasoning / thinking 区块 |
| Markdown | mdPreviewTheme | 'vuepress' | Markdown 预览主题 |
| Markdown | mdCodeTheme | 'atom' | 代码块主题 |
| Markdown | mdNoMermaid | false | 是否禁用 Mermaid 图表 |
| Markdown | mdAutoFoldThreshold | null | 代码块超过多少行自动折叠(null 表示不折叠) |
| Artifacts | artifactsEnabled | 'desktop-only' | Artifacts 功能总开关 |
| Artifacts | artifactsAutoExtract | false | 是否自动从助手回复中抽取 Artifact |
| Artifacts | artifactsAutoName | false | 是否自动给抽取出的 Artifact 命名 |
| Artifacts | artifactsReserveOriginal | false | 抽取 Artifact 后是否保留原始文本 |
| 快捷键 | scrollUpKeyV2 / scrollDownKeyV2 | Ctrl+ArrowUp / Ctrl+ArrowDown | 滚动消息列表 |
| 快捷键 | scrollTopKey / scrollBottomKey | Shift+ArrowUp / Shift+ArrowDown | 跳到顶部 / 底部 |
| 快捷键 | switchPrevKeyV2 / switchNextKeyV2 | Ctrl+ArrowLeft / Ctrl+ArrowRight | 切换对话页签 |
| 快捷键 | switchFirstKey / switchLastKey | Shift+ArrowLeft / Shift+ArrowRight | 跳到第一 / 最后一条对话 |
| 快捷键 | regenerateCurrKey | null | 重跑最后一条 assistant 回复 |
| 快捷键 | editCurrKey | null | 编辑最后一条 user 消息 |
| 快捷键 | createDialogKey | null | 新建对话 |
| 快捷键 | focusDialogInputKey | null | 把焦点跳到输入框 |
| 快捷键 | saveArtifactKey | Ctrl+S | 保存当前 Artifact |
| 快捷键 | searchDialogKey | null | 打开对话搜索 |
这些设置存放在 db.reactives 的 #user-perfs 键下(通过 persistentReactive composable 同步到 localStorage,加快启动)。如果你想全部恢复默认值,可以在 Settings 页底部点击 Restore Default Settings。
键盘快捷键编辑器
Settings → Keyboard Shortcuts 会打开 /settings/shortcut-keys。每个快捷键本质上是一个 { key, withCtrl, withShift, withAlt, withMeta } 对象。点击某一行的捕获按钮,然后直接按下你想要的组合键即可。要让这些快捷键真正生效,当前平台必须被 enableShortcutKey 允许。
语言
| 语言代码 | 源码目录 | Quasar 语言包 |
|---|---|---|
en-US | src/i18n/en-US/ | 自动加载 |
zh-CN | src/i18n/zh-CN/ | 自动加载 |
zh-TW | src/i18n/zh-TW/ | 自动加载 |
语言会根据 navigator.language 自动检测;zh-HK 会映射到 zh-TW,其他所有情况回退到 en-US。用户选择会持久化到 local-data.language 中,切换语言后页面会触发一次完整重载。
如果你想添加一种新语言,需要:
- 把
src/i18n/en-US/复制一份到src/i18n/<locale>/,然后逐条翻译 key - 在
src/boot/i18n.ts的langListimport.meta.glob模式里加入这个语言目录,同时把对应的 Quasarlang/<locale>.js也纳入 - 把它加入
MessageLanguages类型和getLanguage()的分支逻辑中