diff --git a/backend/utils/files/fileinfo.go b/backend/utils/files/fileinfo.go index 9ab0a93a0..7008d9d4d 100644 --- a/backend/utils/files/fileinfo.go +++ b/backend/utils/files/fileinfo.go @@ -55,8 +55,8 @@ type FileOption struct { ShowHidden bool `json:"showHidden"` Page int `json:"page"` PageSize int `json:"pageSize"` - SortBy string `json:"sortBy" validate:"oneof=name size modTime"` - SortOrder string `json:"sortOrder" validate:"oneof=ascending descending"` + SortBy string `json:"sortBy"` + SortOrder string `json:"sortOrder"` } type FileSearchInfo struct { diff --git a/frontend/src/components/del-dialog/index.vue b/frontend/src/components/del-dialog/index.vue index 745a3f145..f493a7ae0 100644 --- a/frontend/src/components/del-dialog/index.vue +++ b/frontend/src/components/del-dialog/index.vue @@ -35,8 +35,12 @@