mirror of https://github.com/certd/certd
perf: 授权配置去除前后空格
parent
6e2ac1c089
commit
57d8d48046
|
@ -57,7 +57,12 @@ export class AccessService extends BaseService<AccessEntity> {
|
|||
}
|
||||
for (const key in json) {
|
||||
//加密
|
||||
const value = json[key];
|
||||
let value = json[key];
|
||||
if (value && typeof value === 'string') {
|
||||
//去除前后空格
|
||||
value = value.trim();
|
||||
json[key] = value;
|
||||
}
|
||||
const accessInputDefine = accessDefine.input[key];
|
||||
if (!accessInputDefine) {
|
||||
continue;
|
||||
|
|
|
@ -70,6 +70,7 @@ export class SshAccess extends BaseAccess implements ConnectConfig {
|
|||
component: {
|
||||
name: 'a-input',
|
||||
vModel: 'value',
|
||||
placeholder: 'socks5://user:password@host:port',
|
||||
},
|
||||
encrypt: false,
|
||||
})
|
||||
|
@ -77,7 +78,7 @@ export class SshAccess extends BaseAccess implements ConnectConfig {
|
|||
|
||||
@AccessInput({
|
||||
title: '是否Windows',
|
||||
helper: '如果是Windows主机,请勾选此项',
|
||||
helper: '如果是Windows主机,请勾选此项\n并且需要windows[安装OpenSSH](https://gitee.com/certd/certd/blob/v2/doc/host/host.md)',
|
||||
component: {
|
||||
name: 'a-switch',
|
||||
vModel: 'checked',
|
||||
|
|
Loading…
Reference in New Issue