diff --git a/web/src/lib/version.ts b/web/src/lib/version.ts
new file mode 100644
index 0000000..1196837
--- /dev/null
+++ b/web/src/lib/version.ts
@@ -0,0 +1,3 @@
+// 版本号配置
+// 更新版本时需要手动修改此文件
+export const VERSION = '1.3.0';
diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte
index f12f5ce..8927faa 100644
--- a/web/src/routes/+layout.svelte
+++ b/web/src/routes/+layout.svelte
@@ -27,8 +27,8 @@
import Sparkles from '@lucide/svelte/icons/sparkles';
import Info from '@lucide/svelte/icons/info';
- // 从 package.json 导入版本号
- import pkg from '../../package.json';
+ // 版本号
+ import { VERSION } from '$lib/version';
// Theme
import {
@@ -248,7 +248,7 @@
title="查看更新日志"
>
- v{pkg.version}
+ v{VERSION}
{/snippet}