refactor(projects): 恢复pinia默认写法

This commit is contained in:
Soybean
2022-01-16 20:13:11 +08:00
parent 28b5d22401
commit b2a4ddf5e3
34 changed files with 1242 additions and 965 deletions

View File

@ -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;
}