fix env config space bug (#12147)
This commit is contained in:
parent
f982e1d2a2
commit
beebc5e0ad
|
|
@ -160,7 +160,6 @@ const EnvironmentModal = defineComponent({
|
|||
path='config'
|
||||
>
|
||||
<NInput
|
||||
allowInput={this.trim}
|
||||
class='input-environment-config'
|
||||
placeholder={envConfigPlaceholder}
|
||||
type='textarea'
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue