mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-09 20:57:17 +08:00
fix:修复文件管理左侧‘全部’查询问题
This commit is contained in:
@@ -96,7 +96,7 @@ const { mode, selectedFileIds, toggleMode, addSelectedFileItem } = useFileManage
|
||||
|
||||
const queryForm = reactive<FileQuery>({
|
||||
name: undefined,
|
||||
type: route.query.type?.toString() || undefined,
|
||||
type: route.query.type?.toString() !== '0' ? route.query.type?.toString() : undefined,
|
||||
sort: ['updateTime,desc']
|
||||
})
|
||||
const paginationOption = reactive({
|
||||
@@ -209,7 +209,12 @@ const handleUpload = (options: RequestOption) => {
|
||||
|
||||
onBeforeRouteUpdate((to) => {
|
||||
if (!to.query.type) return
|
||||
if (to.query.type === '0') {
|
||||
queryForm.type = undefined
|
||||
} else {
|
||||
queryForm.type = to.query.type?.toString()
|
||||
}
|
||||
|
||||
search()
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user