修复code异常问题
This commit is contained in:
parent
6d0f0cc838
commit
be938c8783
@ -116,6 +116,7 @@ export default async (knex: Knex): Promise<void> => {
|
|||||||
if (!fs.existsSync(rootDir)) fs.mkdirSync(rootDir, { recursive: true });
|
if (!fs.existsSync(rootDir)) fs.mkdirSync(rootDir, { recursive: true });
|
||||||
if (!fs.existsSync(path.join(rootDir, filename))) {
|
if (!fs.existsSync(path.join(rootDir, filename))) {
|
||||||
code = vendorData[filename] || code;
|
code = vendorData[filename] || code;
|
||||||
|
code = code ?? "";
|
||||||
fs.writeFileSync(path.join(rootDir, filename), code);
|
fs.writeFileSync(path.join(rootDir, filename), code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user