diff --git a/pingan/deploy.js b/pingan/deploy.js index ea70766..9c2817f 100644 --- a/pingan/deploy.js +++ b/pingan/deploy.js @@ -48,6 +48,7 @@ function copyDirectorySync(source, target) { } } } + // try { // const sourceDir = './dist'; // const targetDir = 'E:\\pinan_dist'; @@ -58,6 +59,7 @@ function copyDirectorySync(source, target) { // console.error('复制过程中出错:', err); // } // process.exit(0); + try { // 检查dist目录是否存在 if (!fs.existsSync(config.distPath)) {