fix: 去掉name的空格

This commit is contained in:
zhengkunwang223 2022-12-26 17:12:40 +08:00 committed by zhengkunwang223
parent eaa0ff18e4
commit 43ba468b82
3 changed files with 10 additions and 5 deletions

View File

@ -15,7 +15,7 @@
:validate-on-rule-change="false"
>
<el-form-item :label="$t('app.name')" prop="NAME">
<el-input v-model="form['NAME']"></el-input>
<el-input v-model.trim="form['NAME']"></el-input>
</el-form-item>
<Params v-model:form="form" v-model:params="installData.params" v-model:rules="rules"></Params>
</el-form>

View File

@ -1,7 +1,12 @@
<template>
<div v-for="(p, index) in paramObjs" :key="index">
<el-form-item :label="p.labelZh" :prop="p.prop">
<el-input v-model="form[p.envKey]" v-if="p.type == 'text'" :type="p.type" @change="updateParam"></el-input>
<el-input
v-model.trim="form[p.envKey]"
v-if="p.type == 'text'"
:type="p.type"
@change="updateParam"
></el-input>
<el-input
v-model.number="form[p.envKey]"
v-if="p.type == 'number'"
@ -10,7 +15,7 @@
:disabled="p.disabled"
></el-input>
<el-input
v-model="form[p.envKey]"
v-model.trim="form[p.envKey]"
v-if="p.type == 'password'"
:type="p.type"
show-password

View File

@ -97,7 +97,7 @@
</div>
</div>
<el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain">
<el-input v-model="website.primaryDomain" @input="changeAlias(website.primaryDomain)"></el-input>
<el-input v-model.trim="website.primaryDomain" @input="changeAlias(website.primaryDomain)"></el-input>
</el-form-item>
<el-form-item :label="$t('website.otherDomains')" prop="otherDomains">
<el-input
@ -108,7 +108,7 @@
></el-input>
</el-form-item>
<el-form-item :label="$t('website.alias')" prop="alias">
<el-input v-model="website.alias" :placeholder="$t('website.aliasHelper')"></el-input>
<el-input v-model.trim="website.alias" :placeholder="$t('website.aliasHelper')"></el-input>
<div>
<span class="input-help">
<span>{{ $t('website.staticPath') + staticPath + website.alias }}</span>