gaoluyang
3 小时以前 2c883ef7a59e75535f26a95a8aa0155990dac8ca
multiple/multiple-build.js
@@ -66,7 +66,10 @@
            const originFile = path.join(rootPath, config[key]);
            const backupFile = path.join(replacePath, config[key]);
            await fs.copyFile(backupFile, originFile);
            // 检查备份文件是否存在
            if (fsSync.existsSync(backupFile)) {
                await fs.copyFile(backupFile, originFile);
            }
        }
        await fs.rm(replacePath, { recursive: true, force: true });
        console.log(`🗑️ 已删除 ${replacePath}`);