fix env config space bug (#12147)

This commit is contained in:
Devosend 2022-09-26 19:06:56 +08:00 committed by GitHub
parent cc82206c33
commit 87490a34cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,6 @@ const EnvironmentModal = defineComponent({
path='config'
>
<NInput
allowInput={this.trim}
class='input-environment-config'
placeholder={envConfigPlaceholder}
type='textarea'

View File

@ -97,6 +97,7 @@ export function useModal(
if (variables.saving) return
variables.saving = true
variables.model.config = variables.model.config.trim()
try {
statusRef === 0
? await submitEnvironmentModal()