mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
Revert "feat: 调整"
This reverts commit 1a543928b10428a15aad817adffe12bd5658d428.
This commit is contained in:
parent
1a543928b1
commit
dc92ace85e
@ -9,7 +9,6 @@ import { NodeIKernelLoginService } from '@/core/services';
|
||||
import { NodeIQQNTWrapperSession, WrapperNodeApi } from '@/core/wrapper';
|
||||
import { InitWebUi, WebUiConfig } from '@/webui';
|
||||
import { NapCatOneBot11Adapter } from '@/onebot';
|
||||
import { mkdir, mkdirSync } from 'fs';
|
||||
|
||||
//Framework ES入口文件
|
||||
export async function getWebUiUrl() {
|
||||
@ -27,12 +26,8 @@ export async function NCoreInitFramework(
|
||||
let dataPath: string | undefined;
|
||||
try {
|
||||
dataPath = (global as any).LiteLoader.plugins['NapCatQQ'].path.data;
|
||||
if (dataPath) {
|
||||
mkdirSync(dataPath, { recursive: true });
|
||||
}
|
||||
} catch (error) {
|
||||
dataPath = undefined;
|
||||
|
||||
}
|
||||
|
||||
const pathWrapper = new NapCatPathWrapper(dataPath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user