Skip to content

Commit

Permalink
fix(uni-app-x): 修复unicloud-db类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Jul 18, 2024
1 parent 6435874 commit 3ab531b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/uni-components/lib-x/unicloud-db/unicloud-db.vue
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
reset() {
this.pagination.current = 1
},
async get(options? : UniCloudDBComponentLoadDataOptions) : Promise<void> {
async get(options? : UniCloudDBComponentLoadDataOptions | null) : Promise<void> {
let loadAfterClear = false
if (options != null && options.clear != null && options.clear == true) {
loadAfterClear = true
Expand Down Expand Up @@ -599,12 +599,12 @@
})
}
},
_requestFail(err ?: any | null, callback ?: FailCallback) {
_requestFail(err ?: any | null, callback ?: FailCallback | null) {
callback?.(err)
this.error = err as UniCloudError
this.$emit(EVENT_ERROR, err)
},
_requestComplete(callback ?: CompleteCallback, needLoading ?: boolean | null) {
_requestComplete(callback ?: CompleteCallback | null, needLoading ?: boolean | null) {
callback?.()
if (needLoading == true) {
uni.hideLoading()
Expand Down

0 comments on commit 3ab531b

Please sign in to comment.