Skip to content

Commit

Permalink
[improvement] improve details page return to the previous list page (a…
Browse files Browse the repository at this point in the history
…pache#14951)

improve details page return to the previous list page
  • Loading branch information
zhutong6688 authored Sep 22, 2023
1 parent b47c727 commit b439468
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ export default defineComponent({
const handleRenameFile = () => {
variables.renameShowRef = true
}
const detailPageStore = useDetailPageStore()
const isDetailPageStore = useIsDetailPageStore()
const detailPageStore = useDetailPageStore()
const isDetailPageStore = useIsDetailPageStore()

const handleDetailBackList = () => {
if(isDetailPageStore.getIsDetailPage){
variables.resourceType = detailPageStore.getResourceType
Expand All @@ -116,20 +117,19 @@ export default defineComponent({
variables.searchRef = detailPageStore.getSearchValue
variables.pagination.page = detailPageStore.getPage
variables.pagination.pageSize = detailPageStore.getPageSize
if(isEmpty(variables.searchRef)){
if(!isEmpty(variables.searchRef)){
handleConditions()
}
detailPageStore.$reset()
isDetailPageStore.$reset()
detailPageStore.$reset()
isDetailPageStore.$reset()
} else {
detailPageStore.$reset()
isDetailPageStore.$reset()
detailPageStore.$reset()
isDetailPageStore.$reset()
}
}

onUnmounted(() => {
isDetailPageStore.$reset()
detailPageStore.$reset()
})
onMounted(() => {
handleDetailBackList()
Expand Down

0 comments on commit b439468

Please sign in to comment.