Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mini_own
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
geruidan
mini_own
Commits
6884a4d4
Commit
6884a4d4
authored
Mar 27, 2023
by
geruidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update user.js 加了fail
parent
f46131b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
shopro/store/modules/user.js
shopro/store/modules/user.js
+7
-0
No files found.
shopro/store/modules/user.js
View file @
6884a4d4
...
...
@@ -51,6 +51,13 @@ const actions = {
let
token
=
encodeURI
(
JSON
.
stringify
(
res
.
data
))
uni
.
setStorageSync
(
"
token
"
,
token
)
resolve
(
1
);
}
else
{
uni
.
showToast
({
title
:
`
${
res
.
code
}
${
res
.
msg
}
`
,
duration
:
2000
,
icon
:
'
none
'
});
resolve
(
0
)
}
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment