双token(未做完)
This commit is contained in:
@@ -8,6 +8,7 @@ export namespace Login {
|
||||
}
|
||||
export interface ResLogin {
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
userInfo:{
|
||||
name: string;
|
||||
}
|
||||
|
||||
@@ -30,3 +30,7 @@ export const getDictList = () =>{
|
||||
return http.get<Dict>('/dictData/dictDataCache')
|
||||
}
|
||||
|
||||
// token刷新
|
||||
export const refreshToken = () => {
|
||||
return http.post<Login.ResLogin>(`${rePrefix}/refreshToken`, {},{ loading: false })
|
||||
}
|
||||
Reference in New Issue
Block a user