Skip to content

Commit 6122bdb

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 045c01f + 8d13122 commit 6122bdb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/render/components/Host/CreateProject/nodejsCreate.win.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
loading.value = true
182182
const form = ProjectSetup.form.NodeJS
183183
const execXTerm = new XTerm()
184-
const item = app.value.list.find((f) => f.version === form.version)
184+
const item: any = app.value.list.find((f) => f.version === form.version)
185185
const command: string[] = []
186186
if (window.Server.Proxy) {
187187
for (const k in window.Server.Proxy) {
@@ -200,7 +200,7 @@
200200
)
201201
}
202202
command.push(`cd "${form.dir}"`)
203-
const arr = item?.command?.split(';') ?? []
203+
const arr = item?.commandWin?.split(';') ?? item?.command?.split(';') ?? []
204204
command.push(...arr)
205205
206206
nextTick().then(() => {

src/render/components/Host/CreateProject/version_nodejs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ const version = {
6565
{
6666
name: 'latest',
6767
version: '*',
68-
command: 'npm i -g @nestjs/cli;Start-Sleep -Seconds 1.5;nest new'
68+
command: 'npm i -g @nestjs/cli; sleep 1.5; nest new',
69+
commandWin: 'npm i -g @nestjs/cli;Start-Sleep -Seconds 1.5;nest new'
6970
}
7071
]
7172
}

0 commit comments

Comments
 (0)