mirror of
https://github.com/crystelf/crystelf-admin.git
synced 2025-12-05 13:41:57 +00:00
fix:修复某些登录问题
This commit is contained in:
parent
1b447b29fa
commit
9da541e99c
@ -26,7 +26,7 @@ export default class LgrService {
|
||||
logger.error('[crystelf-admin] 未配置 lgr.basePath');
|
||||
}
|
||||
const parentDir = path.dirname(this.basePath);
|
||||
const targetDir = path.join(parentDir, String(qq));
|
||||
const targetDir = path.join(path.join(parentDir, '..'), String(qq));
|
||||
if (!fs.existsSync(targetDir)) {
|
||||
try {
|
||||
await execAsync(`cp -r "${this.basePath}" "${targetDir}"`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user