mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-12 19:53:41 +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