调整低代码平台生成文件的路径
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/package-lock.json
|
/package-lock.json
|
||||||
/zips/
|
/zips/
|
||||||
|
/aicode/
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ module.exports = {
|
|||||||
dbUtils.query(sql).then(res => {
|
dbUtils.query(sql).then(res => {
|
||||||
let info = res?.[0]
|
let info = res?.[0]
|
||||||
if (info?.id) {
|
if (info?.id) {
|
||||||
let path = `/home/deploy/node-service/aicode/${info.id}`, zipPath = `${path}/${info.id}.zip`
|
let path = `./aicode/${info.id}`, zipPath = `${path}/${info.id}.zip`
|
||||||
generate(info, path).then(() => {
|
generate(info, path).then(() => {
|
||||||
fse.pathExists(path, (err, exists) => {
|
fse.pathExists(path, (err, exists) => {
|
||||||
console.log(`${path}=========>${exists}`)
|
console.log(`${path}=========>${exists}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user