feat: 对接了会话的接口与会话交互
This commit is contained in:
@@ -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