diff --git a/docs/model-chat-migration-plan.md b/docs/model-chat-migration-plan.md index e43c525..09e7e3a 100644 --- a/docs/model-chat-migration-plan.md +++ b/docs/model-chat-migration-plan.md @@ -550,7 +550,10 @@ contextBridge.exposeInMainWorld('api', { #### 4.5.2 Chat 页面移除模型选择器 - 从 `ChatBox.vue` 中移除 `ModelSelector` 组件及其引用; - 对话功能直接使用 provider 管理中「设置为默认」的模型账户; -- 若未设置默认模型,提示用户前往模型管理页面配置。 +- 对话页面 `onMounted` 时主动调用 `providerStore.init()` 加载模型配置。 + +#### 4.5.3 自动默认模型兜底 +当 `providerStore.init()` 初始化后发现用户已存在 provider accounts 但未设置 `defaultAccountId` 时,自动将第一个 account 设为默认,确保用户无需手动点击"设为默认"即可直接开始对话。若用户没有任何账户,则保持原有提示行为。 --- diff --git a/index.html b/index.html index ec44c7c..b6dd11d 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ diff --git a/src/constant/taskCenterList.ts b/src/constant/taskCenterList.ts index 6abb32a..37523e3 100644 --- a/src/constant/taskCenterList.ts +++ b/src/constant/taskCenterList.ts @@ -5,17 +5,10 @@ export interface taskCenterItem { desc: string, id: string, icon: string, - type: 'sale' | 'close' | 'open' | 'channel' + type?: 'channel' } export const taskCenterList: taskCenterItem[] = [ - { - title: '每日销售数据', - desc: '分析用于销售渠道每日数据汇总及简要展示', - id: uuidv4(), - icon: '销', - type: 'sale' - }, { title: '一键打开各渠道', desc: '人工账号登录,为自动化操作做好准备', @@ -24,17 +17,9 @@ export const taskCenterList: taskCenterItem[] = [ type: 'channel' }, { - title: '关渠道房型', - desc: '关闭销售渠道下的指定房型', + title: '渠道房型', + desc: '销售渠道下的指定房型,管理开关房型', id: uuidv4(), - icon: '关', - type: 'close' - }, - { - title: '开渠道房型', - desc: '开启销售渠道下的指定房型', - id: uuidv4(), - icon: '开', - type: 'open' + icon: '房' }, ] \ No newline at end of file diff --git a/src/pages/home/ChatBox.vue b/src/pages/home/ChatBox.vue index 8d432a0..49c7dad 100644 --- a/src/pages/home/ChatBox.vue +++ b/src/pages/home/ChatBox.vue @@ -1,12 +1,8 @@