feat: 对接了会话的接口与会话交互
This commit is contained in:
1 parent
c75448e558
commit
e6b9407e69
6 files changed
+219
-29
No files matched your search
@@ -15,7 +15,8 @@ export async function loginAuth() {
|
||||
password: 'YehdBPev'
|
||||
});
|
||||
if (response.access_token) {
|
||||
return response.data;
|
||||
uni.setStorageSync('token', response.access_token)
|
||||
return response;
|
||||
} else {
|
||||
throw new Error(response.message || '登录失败');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user