From 5bf4e54f20f565448e17f8fa93870ffef261f050 Mon Sep 17 00:00:00 2001 From: liyou <1099743238@qq.com> Date: Tue, 25 Apr 2023 16:23:56 +0800 Subject: [PATCH] resource file manager page,repeat onMounted optimize --- .../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 44e9d9f67253..e6bbfd529725 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 requestData() - }) const trim = getCurrentInstance()?.appContext.config.globalProperties.trim @@ -134,10 +134,6 @@ export default defineComponent({ } } - onMounted(() => { - createColumns(variables) - requestData() - }) watch(useI18n().locale, () => { createColumns(variables) })