样式美化,添加tocken刷新按钮

This commit is contained in:
2025-10-02 07:42:07 +08:00
parent 194566c8fb
commit 9751801e1b
7 changed files with 1304 additions and 224 deletions
+8 -1
View File
@@ -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;