feat: 创建 DNS 账号禁止输入空格 (#1276)

pull/1277/head
zhengkunwang223 2023-06-07 15:03:25 +08:00 committed by GitHub
parent f79293be69
commit 8f8369c989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@
<el-col :span="22" :offset="1"> <el-col :span="22" :offset="1">
<el-form ref="sslForm" label-position="top" :model="ssl" label-width="100px" :rules="rules"> <el-form ref="sslForm" label-position="top" :model="ssl" label-width="100px" :rules="rules">
<el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain"> <el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain">
<el-input v-model="ssl.primaryDomain"></el-input> <el-input v-model.trim="ssl.primaryDomain"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('website.otherDomains')" prop="otherDomains"> <el-form-item :label="$t('website.otherDomains')" prop="otherDomains">
<el-input <el-input

View File

@ -25,26 +25,26 @@
</el-form-item> </el-form-item>
<div v-if="account.type === 'AliYun'"> <div v-if="account.type === 'AliYun'">
<el-form-item label="Access Key" prop="authorization.accessKey"> <el-form-item label="Access Key" prop="authorization.accessKey">
<el-input v-model="account.authorization['accessKey']"></el-input> <el-input v-model.trim="account.authorization['accessKey']"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="Secret Key" prop="authorization.secretKey"> <el-form-item label="Secret Key" prop="authorization.secretKey">
<el-input v-model="account.authorization['secretKey']"></el-input> <el-input v-model.trim="account.authorization['secretKey']"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div v-if="account.type === 'DnsPod'"> <div v-if="account.type === 'DnsPod'">
<el-form-item label="ID" prop="authorization.id"> <el-form-item label="ID" prop="authorization.id">
<el-input v-model="account.authorization['id']"></el-input> <el-input v-model.trim="account.authorization['id']"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="Token" prop="authorization.token"> <el-form-item label="Token" prop="authorization.token">
<el-input v-model="account.authorization['token']"></el-input> <el-input v-model.trim="account.authorization['token']"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div v-if="account.type === 'CloudFlare'"> <div v-if="account.type === 'CloudFlare'">
<el-form-item label="EMAIL" prop="authorization.email"> <el-form-item label="EMAIL" prop="authorization.email">
<el-input v-model="account.authorization['email']"></el-input> <el-input v-model.trim="account.authorization['email']"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="API Key" prop="authorization.apiKey"> <el-form-item label="API Key" prop="authorization.apiKey">
<el-input v-model="account.authorization['apiKey']"></el-input> <el-input v-model.trim="account.authorization['apiKey']"></el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>