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

wanggenhua 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 23c7363f64 [Refactor][UI]Add a back button when viewing an error file 
(#13354)
23c7363f64 is described below

commit 23c7363f64c3a38a4e012ee3e6567ae31c350820
Author: imizao <[email protected]>
AuthorDate: Mon Jan 30 10:06:56 2023 +0800

    [Refactor][UI]Add a back button when viewing an error file (#13354)
    
    Co-authored-by: imizao <[email protected]>
---
 dolphinscheduler-ui/src/service/service.ts               |  4 ++--
 .../src/views/resource/file/edit/index.tsx               | 16 +++++++++++++++-
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/dolphinscheduler-ui/src/service/service.ts 
b/dolphinscheduler-ui/src/service/service.ts
index 070aa1059c..97865a2ad4 100644
--- a/dolphinscheduler-ui/src/service/service.ts
+++ b/dolphinscheduler-ui/src/service/service.ts
@@ -72,9 +72,9 @@ const err = (err: AxiosError): Promise<AxiosError> => {
 }
 
 service.interceptors.request.use((config: AxiosRequestConfig<any>) => {
-  config.headers && (config.headers.sessionId = userStore.getSessionId)
-  const language = cookies.get('language')
   config.headers = config.headers || {}
+  config.headers.sessionId = userStore.getSessionId
+  const language = cookies.get('language')
   if (language) config.headers.language = language
 
   return config
diff --git a/dolphinscheduler-ui/src/views/resource/file/edit/index.tsx 
b/dolphinscheduler-ui/src/views/resource/file/edit/index.tsx
index 36e112b409..9a414f647b 100644
--- a/dolphinscheduler-ui/src/views/resource/file/edit/index.tsx
+++ b/dolphinscheduler-ui/src/views/resource/file/edit/index.tsx
@@ -109,7 +109,21 @@ export default defineComponent({
           </div>
         ) : (
           <NSpace justify='center'>
-            <NSpin show={true} />
+            <NSpace vertical>
+              <NSpin show={true} />
+              <NSpace>
+                <NButton
+                  type='info'
+                  size='small'
+                  text
+                  style={{ marginRight: '15px' }}
+                  onClick={this.handleReturn}
+                  class='btn-cancel'
+                >
+                  {t('resource.file.return')}
+                </NButton>
+              </NSpace>
+            </NSpace>
           </NSpace>
         )}
       </Card>

Reply via email to