Conversation
There was a problem hiding this comment.
Pull request overview
本 PR 旨在在“模型切换”过程中提供明确的 UI 提示(主窗口遮罩 + 偏好设置页加载提示),避免用户在切换时误以为卡顿或无响应,从而提升交互体验。
Changes:
- 在
modelstore 中新增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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.