Commit 289f8281 authored by 王曜嵚 Wang Yaoqin's avatar 王曜嵚 Wang Yaoqin

dev: 切换环境时发送 Socket 通知状态变更

parent 8c61c719
...@@ -170,11 +170,11 @@ class Docker { ...@@ -170,11 +170,11 @@ class Docker {
if (platform === 'v1') { if (platform === 'v1') {
await this.switchJavaVersion({ container, username, version: 8 }) await this.switchJavaVersion({ container, username, version: 8 })
const statusV2 = (await getPgTableData( 'v2', username))?.status const statusV2 = (await getPgTableData( 'v2', username))?.status
if (statusV2) setPgTableData( 'v2', username, 'status', 'compiled') // 如果系统在运行,回退到已创建的状态 if (statusV2) changeProjectStatus( 'v2', username, 'status', 'compiled') // 如果系统在运行,回退到已创建的状态
} else { } else {
await this.switchJavaVersion({ container, username, version: 17 }) await this.switchJavaVersion({ container, username, version: 17 })
const statusV1 = (await getPgTableData( 'v1', username))?.status const statusV1 = (await getPgTableData( 'v1', username))?.status
if (statusV1) setPgTableData( 'v1', username, 'status', 'compiled') // 如果系统在运行,回退到已创建的状态 if (statusV1) changeProjectStatus( 'v1', username, 'status', 'compiled') // 如果系统在运行,回退到已创建的状态
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment