Skip to content

feat: 模型切换时增加提示信息以提升体验#917

Merged
ayangweb merged 2 commits intomasterfrom
add-toggle-tip
Apr 16, 2026
Merged

feat: 模型切换时增加提示信息以提升体验#917
ayangweb merged 2 commits intomasterfrom
add-toggle-tip

Conversation

@ayangweb
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本 PR 旨在在“模型切换”过程中提供明确的 UI 提示(主窗口遮罩 + 偏好设置页加载提示),避免用户在切换时误以为卡顿或无响应,从而提升交互体验。

Changes:

  • model store 中新增 modelReady 状态,用于驱动“切换中…”提示
  • 偏好设置页在切换模型时展示全局 Spin 提示,并在模型卡片点击时置为“未就绪”
  • 主窗口在模型切换时展示遮罩提示,并在模型加载逻辑结束后将 modelReady 置回 true
  • 为多语言资源补充 pages.main.hints.switching

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/stores/model.ts 新增并暴露 modelReady 状态供跨页面/窗口提示使用
src/pages/preference/index.vue 在偏好设置页用 Spin 根据 modelReady 展示“切换中…”提示
src/pages/preference/components/model/index.vue 新增切换处理函数,切换前将 modelReady 置为 false
src/pages/main/index.vue 模型加载完成后置 modelReady = true,并新增主窗口遮罩提示
src/locales/zh-TW.json 新增 switching 文案
src/locales/zh-CN.json 新增 switching 文案
src/locales/vi-VN.json 新增 switching 文案
src/locales/pt-BR.json 新增 switching 文案
src/locales/en-US.json 新增 switching 文案

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/stores/model.ts
Comment thread src/pages/main/index.vue
Comment thread src/pages/preference/components/model/index.vue
@ayangweb ayangweb merged commit 3b72fdc into master Apr 16, 2026
@ayangweb ayangweb deleted the add-toggle-tip branch April 16, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants