mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 07:28:21 +08:00
AlasGG
This commit is contained in:
13
webapp/packages/common/utils/checkIsFirst.ts
Normal file
13
webapp/packages/common/utils/checkIsFirst.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import getAlasABSPath from './getAlasABSPath';
|
||||
import fs from 'fs';
|
||||
import {join} from 'path';
|
||||
import {ALAS_CONFIG_TEMPLATE_YAML, ALAS_CONFIG_TEST_TEMPLATE_YAML} from '../constant/config';
|
||||
export function checkIsFirst(): boolean {
|
||||
const absPath = getAlasABSPath();
|
||||
return fs.existsSync(
|
||||
join(
|
||||
absPath,
|
||||
`/config/${import.meta.env.DEV ? ALAS_CONFIG_TEST_TEMPLATE_YAML : ALAS_CONFIG_TEMPLATE_YAML}`,
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user