+
+
{{$t('This language is not installed yet.')}}
+
{{$t('Install')}}
@@ -175,6 +208,9 @@ export default {
}
},
async getInstalledDepList () {
+ if (this.activeLang.install_status !== 'installed') return
+ if (this.activeLang.name === 'Java') return
+
this.loading = true
this.installedDepList = []
const res = await this.$request.get(`/nodes/${this.nodeForm._id}/deps/installed`, {
@@ -295,19 +331,17 @@ export default {
const res = await this.$request.get(`/nodes/${id}/langs`)
this.langList = res.data.data
this.activeTab = this.langList[0].executable_name || ''
- await this.getInstalledDepList()
+ setTimeout(() => {
+ this.getInstalledDepList()
+ }, 100)
}
}
diff --git a/frontend/src/i18n/zh.js b/frontend/src/i18n/zh.js
index f02ca169..273f6a75 100644
--- a/frontend/src/i18n/zh.js
+++ b/frontend/src/i18n/zh.js
@@ -346,6 +346,10 @@ export default {
'Executables': '执行文件',
'Latest Version': '最新版本',
'Version': '版本',
+ 'Installed': '已安装',
+ 'Installing': '正在安装',
+ 'Other language installing': '其他语言正在安装',
+ 'This language is not installed yet.': '语言还未安装',
// 弹出框
'Notification': '提示',