修改登录
This commit is contained in:
1 parent
8b14195c63
commit
56d21c3a2b
5 files changed
+45
-9
No files matched your search
@@ -48,7 +48,7 @@ const doDel = (id: string) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<crud-layout title="人脸管理一下" bg="/static/page/blue-bg.png">
|
||||
<crud-layout title="人脸管理" bg="/static/page/blue-bg.png">
|
||||
<z-paging
|
||||
ref="pageRef"
|
||||
height="100%"
|
||||
|
||||
+19
-2
@@ -66,9 +66,26 @@ const getUserInfo = () => {
|
||||
const userStorage = uni.getStorageSync(userInfoKey)
|
||||
if (!isEmpty(userStorage)) {
|
||||
state.userInfo = userStorage
|
||||
} else {
|
||||
state.userInfo = {}
|
||||
}
|
||||
}
|
||||
|
||||
// {
|
||||
// "accessToken": {
|
||||
// "tokenValue": "06d43795-a3ef-4019-a70f-25830e7183a4",
|
||||
// "issuedAt": "2025-01-24T11:10:30.423604599Z",
|
||||
// "expiresAt": "2025-01-25T11:10:30.423604599Z",
|
||||
// "tokenType": {
|
||||
// "value": "Bearer"
|
||||
// },
|
||||
// "scopes": []
|
||||
// },
|
||||
// "refreshToken": {
|
||||
// "tokenValue": "FmRVP4l3d7t3263h9LeKnV8hdU0lPasMuI1wank_EbylRQPNLm7XP4_OtUV-zH9AbMZc9f14Qk2IXhw-33fWMGGKipVY8crbvVyWV5DeAcfeU8fYyQuNDh9rw3Dq0w75",
|
||||
// "issuedAt": "2025-01-24T11:10:30.423699280Z",
|
||||
// "expiresAt": "2025-01-31T11:10:30.423699280Z"
|
||||
// }
|
||||
// }
|
||||
const doLogin = async (loginType, token, accountId, sessionId) => {
|
||||
const tokenKey = constant.storageConstant.TOKEN
|
||||
const userInfoKey = constant.storageConstant.USERINFO
|
||||
@@ -190,7 +207,7 @@ const onTabLogin = () => {
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="flex-col-center m-t-40rpx m-x-30rpx">
|
||||
<view v-if="isDevEnv()" class="flex-col-center m-t-40rpx m-x-30rpx">
|
||||
<view
|
||||
class="w-full text-center sub-text-28 p-y-20rpx rounded-40rpx border-solid border border-#0094ff"
|
||||
@tap="doLogout"
|
||||
|
||||
Reference in new issue
Block a user