This commit is contained in:
weiwei committed 2025-03-24 11:01:23 +08:00
1 parent ac6fc9245c
commit 7819d15326
2 files changed
+4 -7

No files matched your search

+1 -1
View File
@@ -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)