微信小程序一键登录
This commit is contained in:
1 parent
955c13429a
commit
f31015deb0
12 files changed
+132
-86
No files matched your search
@@ -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([])
|
||||
|
||||
Reference in new issue
Block a user