From cd19faba47e2a8f00808fe536e20f1672aaf1e6d Mon Sep 17 00:00:00 2001 From: purp1e Date: Sat, 8 Nov 2025 21:04:31 +0800 Subject: [PATCH] try to fix update starting but failed --- next-env.d.ts | 2 +- src/components/cstb/UpdateChecker.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index c4b7818..9edff1c 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/dev/types/routes.d.ts"; +import "./.next/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/src/components/cstb/UpdateChecker.tsx b/src/components/cstb/UpdateChecker.tsx index 65a405e..5a973f7 100644 --- a/src/components/cstb/UpdateChecker.tsx +++ b/src/components/cstb/UpdateChecker.tsx @@ -189,7 +189,7 @@ export function UpdateChecker({ try { addToast({ title: "安装已启动", - description: "应用将在安装完成后自动重启", + description: "安装完成后请手动重启应用", color: "success", }) @@ -199,7 +199,7 @@ export function UpdateChecker({ }) // 安装完成后,等待一小段时间确保安装程序完全退出 - await new Promise((resolve) => setTimeout(resolve, 1500)) + await new Promise((resolve) => setTimeout(resolve, 2500)) // 启动新版本 await relaunch()