Browse Source

fix env config space bug (#12147)

3.1.0-release
Devosend 2 years ago committed by caishunfeng
parent
commit
beebc5e0ad
  1. 1
      dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
  2. 1
      dolphinscheduler-ui/src/views/security/environment-manage/components/use-modal.ts

1
dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx

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

1
dolphinscheduler-ui/src/views/security/environment-manage/components/use-modal.ts

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

Loading…
Cancel
Save