try to fix update starting but failed
This commit is contained in:
2
next-env.d.ts
vendored
2
next-env.d.ts
vendored
@@ -1,6 +1,6 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
import "./.next/dev/types/routes.d.ts";
|
import "./.next/types/routes.d.ts";
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ export function UpdateChecker({
|
|||||||
try {
|
try {
|
||||||
addToast({
|
addToast({
|
||||||
title: "安装已启动",
|
title: "安装已启动",
|
||||||
description: "应用将在安装完成后自动重启",
|
description: "安装完成后请手动重启应用",
|
||||||
color: "success",
|
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()
|
await relaunch()
|
||||||
|
|||||||
Reference in New Issue
Block a user