mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
♻️ 通过 import.meta 获取当前环境
This commit is contained in:
@@ -96,7 +96,7 @@ async function createDataDir(): Promise<void> {
|
||||
|
||||
// 初始化数据库
|
||||
async function initData(): Promise<void> {
|
||||
if (appStore.devEnv) {
|
||||
if (!import.meta?.env?.PROD) {
|
||||
console.info("开发环境,跳过数据库初始化!");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user