优化下载打包
This commit is contained in:
@@ -8,7 +8,7 @@ module.exports = {
|
||||
let id = request.query?.id
|
||||
dbUtils.detail({table: 'node_custom_config', id}).then(info => {
|
||||
if (info?.id) {
|
||||
let path = `${info.dist || `../zips/${id}`}`, zipPath = `../zips/${info.id}.zip`
|
||||
let path = `${info.dist || `../zips/${info.name}v${info.version}`}`, zipPath = `../zips/${info.id}.zip`
|
||||
fse.removeSync(zipPath)
|
||||
fse.pathExists(path, (err, exists) => {
|
||||
console.log(`${path}=========>${exists}`)
|
||||
|
||||
Reference in New Issue
Block a user