fix: 解决 Go 运行环境无法保存的问题 (#5721)

This commit is contained in:
zhengkunwang 2024-07-09 10:21:23 +08:00 committed by GitHub
parent 047d49e0eb
commit 02e7c2e974
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -308,7 +308,7 @@ func (r *RuntimeService) Get(id uint) (*response.RuntimeDTO, error) {
}
for k, v := range envs {
switch k {
case "NODE_APP_PORT", "PANEL_APP_PORT_HTTP", "JAVA_APP_PORT":
case "NODE_APP_PORT", "PANEL_APP_PORT_HTTP", "JAVA_APP_PORT", "GO_APP_PORT":
port, err := strconv.Atoi(v)
if err != nil {
return nil, err

View File

@ -33,7 +33,7 @@
</el-text>
</template>
</el-table-column>
<el-table-column :label="$t('runtime.codeDir')" prop="codeDir">
<el-table-column :label="$t('website.runDir')" prop="codeDir">
<template #default="{ row }">
<el-button type="primary" link @click="toFolder(row.codeDir)">
<el-icon>

View File

@ -33,7 +33,7 @@
</el-text>
</template>
</el-table-column>
<el-table-column :label="$t('runtime.codeDir')" prop="codeDir">
<el-table-column :label="$t('website.runDir')" prop="codeDir">
<template #default="{ row }">
<el-button type="primary" link @click="toFolder(row.codeDir)">
<el-icon>