Skip to content

Commit

Permalink
resource file manager page,repeat onMounted optimize (#14011)
Browse files Browse the repository at this point in the history
  • Loading branch information
ly109974 authored Apr 25, 2023
1 parent 8c43e71 commit b451d64
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -134,10 +134,6 @@ export default defineComponent({
}
}

onMounted(() => {
createColumns(variables)
requestData()
})
watch(useI18n().locale, () => {
createColumns(variables)
})
Expand Down

0 comments on commit b451d64

Please sign in to comment.