Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b57250f6
authored
Apr 07, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
6865fc55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
linkwe-mobile/src/utils/index.js
linkwe-mobile/src/utils/index.js
View file @
b57250f
...
...
@@ -57,7 +57,7 @@ export function getQueryValue(name) {
}
export
async
function
getWxCode
()
{
let
userinfo
=
local
Storage
.
getItem
(
'userinfo'
)
let
userinfo
=
session
Storage
.
getItem
(
'userinfo'
)
//取缓存中的用户信息
if
(
userinfo
)
{
try
{
...
...
@@ -90,7 +90,7 @@ export async function getWxCode() {
try
{
let
{
data
}
=
await
getUserOpenid
(
code
)
let
{
data
:
dataUser
}
=
await
getWechatUserInfo
(
data
.
openId
)
local
Storage
.
setItem
(
'userinfo'
,
JSON
.
stringify
(
dataUser
))
session
Storage
.
setItem
(
'userinfo'
,
JSON
.
stringify
(
dataUser
))
return
dataUser
}
catch
(
error
)
{
alert
(
error
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment