微信小程序一键登录

This commit is contained in:
dzc committed 2026-03-10 11:05:33 +08:00
1 parent 955c13429a
commit f31015deb0
12 files changed
+132 -86

No files matched your search

+5 -1
View File
@@ -52,9 +52,13 @@ export const usePage = (ref: any = null, fn: Function | null = null, sticky = nu
}
let _arr = res
for (let key of struct.split(".")) {
if (_arr == null) {
break
}
_arr = _arr[key]
}
setPage(_arr)
const list = Array.isArray(_arr) ? _arr : (_arr?.records ?? [])
setPage(list)
} catch (e) {
console.error(e)
setPage([])