mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 恢复pinia默认写法
This commit is contained in:
@ -5,7 +5,7 @@ import { fetchUpdateToken } from '../api';
|
||||
|
||||
/**
|
||||
* 刷新token
|
||||
* token失效时的请求配置
|
||||
* @param axiosConfig - token失效时的请求配置
|
||||
*/
|
||||
export async function refreshToken(axiosConfig: AxiosRequestConfig) {
|
||||
const { resetAuthStore } = useAuthStore();
|
||||
@ -21,6 +21,6 @@ export async function refreshToken(axiosConfig: AxiosRequestConfig) {
|
||||
return config;
|
||||
}
|
||||
|
||||
resetAuthStore(true);
|
||||
resetAuthStore();
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user