This is an automated email from the ASF dual-hosted git repository.
caishunfeng pushed a commit to branch 3.1.0-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/3.1.0-prepare by this push:
new beebc5e0ad fix env config space bug (#12147)
beebc5e0ad is described below
commit beebc5e0adfc6839d2851f42bb1560dcd50034db
Author: Devosend <[email protected]>
AuthorDate: Mon Sep 26 19:06:56 2022 +0800
fix env config space bug (#12147)
---
.../views/security/environment-manage/components/environment-modal.tsx | 1 -
.../src/views/security/environment-manage/components/use-modal.ts | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
b/dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
index 3f9fc40e7d..f5b7ef8f38 100644
---
a/dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
+++
b/dolphinscheduler-ui/src/views/security/environment-manage/components/environment-modal.tsx
@@ -160,7 +160,6 @@ const EnvironmentModal = defineComponent({
path='config'
>
<NInput
- allowInput={this.trim}
class='input-environment-config'
placeholder={envConfigPlaceholder}
type='textarea'
diff --git
a/dolphinscheduler-ui/src/views/security/environment-manage/components/use-modal.ts
b/dolphinscheduler-ui/src/views/security/environment-manage/components/use-modal.ts
index f3d4d08c38..08beb4a3f7 100644
---
a/dolphinscheduler-ui/src/views/security/environment-manage/components/use-modal.ts
+++
b/dolphinscheduler-ui/src/views/security/environment-manage/components/use-modal.ts
@@ -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()