feat: 添加rdp配置 (#828)

* perf: 修改命令存储创建

* feat: 添加rdp配置

* perf: 优化xrdp显示位置

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot
2021-06-08 15:26:40 +08:00
committed by GitHub
parent 49e2c547e7
commit 2bb1fce491
2 changed files with 13 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ export default {
fields: [
[
this.$t('common.BasicInfo'), [
'SITE_URL', 'USER_GUIDE_URL', 'FORGOT_PASSWORD_URL', globalOrgName
'SITE_URL', 'USER_GUIDE_URL',
'FORGOT_PASSWORD_URL', globalOrgName
]
]
],

View File

@@ -43,11 +43,22 @@ export default {
url: '/api/v1/settings/setting/?category=terminal'
}
},
mounted() {
if (this.$store.getters.hasValidLicense) {
const xRDPFields = [
'XRDP', [
'TERMINAL_RDP_ADDR'
]
]
this.selectFields.splice(1, 0, xRDPFields)
}
},
methods: {
getMethod() {
return 'put'
}
}
}
</script>