mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-25 19:49:14 +08:00
fix: 去掉name的空格
This commit is contained in:
parent
eaa0ff18e4
commit
43ba468b82
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user