feat: add manual and optional auto update in settings
This commit is contained in:
@@ -11,6 +11,7 @@ import Network from "timi-web-api/utils/Network";
|
||||
import { VCan, VRole } from "timi-web-api/utils/directives/Access";
|
||||
import type { ApiResponse } from "timi-web-api";
|
||||
import { Message } from "@/utils/message";
|
||||
import { runAutoUpdate } from "@/composables/useAppUpdate";
|
||||
import { initializeTwaBridge } from "@/utils/twaBridge";
|
||||
import { VEntranceTransition } from "timi-tdesign-mobile";
|
||||
import timiWebStyle from "timi-web/src/assets/style/timi-web.less?inline";
|
||||
@@ -92,6 +93,8 @@ async function bootstrap(): Promise<void> {
|
||||
app.mount("#root");
|
||||
if (Capacitor.isNativePlatform()) {
|
||||
await CapacitorUpdater.notifyAppReady();
|
||||
// 用户开启自动检查才执行,只下载排队,不打断当前会话
|
||||
void runAutoUpdate().catch(() => undefined);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user