mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: FrameWork调整
This commit is contained in:
@@ -21,7 +21,8 @@ export class NapCatPathWrapper {
|
||||
this.logsPath = path.join(writePath, 'logs');
|
||||
this.configPath = path.join(writePath, 'config');
|
||||
this.cachePath = path.join(writePath, 'cache');
|
||||
this.staticPath = path.join(this.binaryPath, 'static');
|
||||
//这个必然和本体一起
|
||||
this.staticPath = path.join(dirname(fileURLToPath(import.meta.url)), 'static');
|
||||
if (!fs.existsSync(this.logsPath)) {
|
||||
fs.mkdirSync(this.logsPath, { recursive: true });
|
||||
}
|
||||
|
Reference in New Issue
Block a user