diff --git a/delete.js b/delete.js index c52a5a1..0464ff0 100644 --- a/delete.js +++ b/delete.js @@ -15,7 +15,7 @@ function vitePluginRemoveDir(options = {}) { const distDir = path.resolve(process.cwd(), 'dist'); // 构建结束后执行的逻辑 for(const item of dirName){ - const fullPath = path.join(distDir, ['production','test'].includes(process.env.NODE_ENV) ? 'build' : 'dev',process.env.UNI_PLATFORM,`static/${item}`); // 构造要删除的目录的完整路径 + const fullPath = path.join(distDir, ['production'].includes(process.env.NODE_ENV) ? 'build' : 'dev',process.env.UNI_PLATFORM,`static/${item}`); // 构造要删除的目录的完整路径 console.log('fullPath',fullPath); // 尝试删除目录 try { diff --git a/src/pages/ycnc/components/product-item.vue b/src/pages/ycnc/components/product-item.vue index 0cd0cef..b7858cc 100644 --- a/src/pages/ycnc/components/product-item.vue +++ b/src/pages/ycnc/components/product-item.vue @@ -25,8 +25,7 @@