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

kerwin 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 b451d64696 resource file manager page,repeat onMounted  optimize 
(#14011)
b451d64696 is described below

commit b451d646967859e3e3491c0b056ef941c8618318
Author: liyou <[email protected]>
AuthorDate: Tue Apr 25 17:28:58 2023 +0800

    resource file manager page,repeat onMounted  optimize (#14011)
---
 .../src/views/resource/components/resource/index.tsx                | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/dolphinscheduler-ui/src/views/resource/components/resource/index.tsx 
b/dolphinscheduler-ui/src/views/resource/components/resource/index.tsx
index 44e9d9f672..e6bbfd5297 100644
--- a/dolphinscheduler-ui/src/views/resource/components/resource/index.tsx
+++ b/dolphinscheduler-ui/src/views/resource/components/resource/index.tsx
@@ -107,11 +107,11 @@ export default defineComponent({
     }
 
     onMounted(() => {
+      createColumns(variables)
       fileStore.setCurrentDir(variables.fullName)
       breadListRef.value = fileStore.getCurrentDir.replace(/\/+$/g, '')
         .split('/').slice(2) as Array<string>
       requestData()
-
     })
 
     const trim = getCurrentInstance()?.appContext.config.globalProperties.trim
@@ -134,10 +134,6 @@ export default defineComponent({
       }
     }
 
-    onMounted(() => {
-      createColumns(variables)
-      requestData()
-    })
     watch(useI18n().locale, () => {
       createColumns(variables)
     })

Reply via email to