mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-26 15:00:16 +08:00
build(projects): update tsconfig、eslintrc
This commit is contained in:
@@ -9,8 +9,8 @@ import { fetchUpdateToken } from '../api';
|
||||
*/
|
||||
export async function refreshToken(axiosConfig: AxiosRequestConfig) {
|
||||
const { resetAuthStore } = useAuthStore();
|
||||
const refreshToken = getRefreshToken();
|
||||
const { data } = await fetchUpdateToken(refreshToken);
|
||||
const rToken = getRefreshToken();
|
||||
const { data } = await fetchUpdateToken(rToken);
|
||||
if (data) {
|
||||
setToken(data.token);
|
||||
setRefreshToken(data.refreshToken);
|
||||
|
||||
Reference in New Issue
Block a user