You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ca...@apache.org on 2022/09/26 11:07:08 UTC

[dolphinscheduler] branch dev updated: fix env config space bug (#12147)

This is an automated email from the ASF dual-hosted git repository.

caishunfeng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 87490a34cc fix env config space bug (#12147)
87490a34cc is described below

commit 87490a34cc0dbfd479fda6bcb1e335e7faf3ce67
Author: Devosend <de...@gmail.com>
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()