mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
ux: 安装 aster-server 后提示需要重启应用
安装成功后显示 toast 提示,告知用户需要重启应用才能启用 AI Agent 功能 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -330,7 +330,10 @@ export function AgentChatPage() {
|
||||
setInstallProgress(null);
|
||||
try {
|
||||
await installAster();
|
||||
toast.success("aster-server 安装成功");
|
||||
toast.success("aster-server 安装成功", {
|
||||
description: "请重启应用以启用 AI Agent 功能",
|
||||
duration: 10000,
|
||||
});
|
||||
setAsterInstalled(true);
|
||||
} catch (error) {
|
||||
toast.error(`安装失败: ${error}`);
|
||||
|
||||
@@ -72,7 +72,10 @@ export function BinaryComponents() {
|
||||
setDownloadProgress(null);
|
||||
try {
|
||||
const result = await installAster();
|
||||
toast.success(result);
|
||||
toast.success(result, {
|
||||
description: "请重启应用以启用 AI Agent 功能",
|
||||
duration: 10000,
|
||||
});
|
||||
await fetchStatus();
|
||||
} catch (error) {
|
||||
toast.error(`安装失败: ${error}`);
|
||||
|
||||
Reference in New Issue
Block a user