1
This commit is contained in:
1 parent
ac6fc9245c
commit
7819d15326
2 files changed
+4
-7
No files matched your search
@@ -157,7 +157,7 @@ http.interceptors.request.use(async (config) => {
|
||||
try {
|
||||
uni.showLoading({ title: "加载中...", mask: true })
|
||||
const res = await userApi.auth(token)
|
||||
if (res?.code === 0) {
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync(TOKEN_KEY, res.data)
|
||||
const { data: userData } = await userApi.userInfo()
|
||||
uni.setStorageSync(USER_INFO_KEY, userData)
|
||||
|
||||
Reference in new issue
Block a user