Browse Source

resource file manager page,repeat onMounted optimize (#14011)

3.2.0-release
liyou 2 years ago committed by GitHub
parent
commit
b451d64696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui/src/views/resource/components/resource/index.tsx

6
dolphinscheduler-ui/src/views/resource/components/resource/index.tsx

@ -107,11 +107,11 @@ export default defineComponent({
} }
onMounted(() => { onMounted(() => {
createColumns(variables)
fileStore.setCurrentDir(variables.fullName) fileStore.setCurrentDir(variables.fullName)
breadListRef.value = fileStore.getCurrentDir.replace(/\/+$/g, '') breadListRef.value = fileStore.getCurrentDir.replace(/\/+$/g, '')
.split('/').slice(2) as Array<string> .split('/').slice(2) as Array<string>
requestData() requestData()
}) })
const trim = getCurrentInstance()?.appContext.config.globalProperties.trim const trim = getCurrentInstance()?.appContext.config.globalProperties.trim
@ -134,10 +134,6 @@ export default defineComponent({
} }
} }
onMounted(() => {
createColumns(variables)
requestData()
})
watch(useI18n().locale, () => { watch(useI18n().locale, () => {
createColumns(variables) createColumns(variables)
}) })

Loading…
Cancel
Save