样式美化,添加tocken刷新按钮
This commit is contained in:
@@ -47,6 +47,13 @@ class AuthService {
|
||||
return apiService.post('/api/auth/relogin');
|
||||
}
|
||||
|
||||
/**
|
||||
* 手动刷新token
|
||||
*/
|
||||
async refreshToken(): Promise<ApiResponse> {
|
||||
return apiService.post('/api/auth/refresh-token');
|
||||
}
|
||||
|
||||
/**
|
||||
* 登出
|
||||
*/
|
||||
@@ -56,4 +63,4 @@ class AuthService {
|
||||
}
|
||||
|
||||
export const authService = new AuthService();
|
||||
export default authService;
|
||||
export default authService;
|
||||
Reference in New Issue
Block a user