💄 修改表格样式.
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
:hide-asterisk="true">
|
||||
<host-identity-selector v-model="formModel.identityId" />
|
||||
</a-form-item>
|
||||
<!-- 用户名 -->
|
||||
<!-- 连接超时时间 -->
|
||||
<a-form-item field="connectTimeout"
|
||||
label="连接超时时间"
|
||||
:hide-asterisk="true">
|
||||
|
||||
@@ -179,13 +179,15 @@
|
||||
|
||||
// 选择公钥文件
|
||||
const selectPublicFile = async (fileList: FileItem[]) => {
|
||||
formModel.value.publicKey = await readFileText(fileList[0].file as File);
|
||||
formModel.value.publicKey = await readFileText(fileList[fileList.length - 1].file as File);
|
||||
fileList.length = 0;
|
||||
formRef.value.clearValidate('publicKey');
|
||||
};
|
||||
|
||||
// 选择私钥文件
|
||||
const selectPrivateFile = async (fileList: FileItem[]) => {
|
||||
formModel.value.privateKey = await readFileText(fileList[0].file as File);
|
||||
formModel.value.privateKey = await readFileText(fileList[fileList.length - 1].file as File);
|
||||
fileList.length = 0;
|
||||
formRef.value.clearValidate('privateKey');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user