build(projects): update tsconfig、eslintrc

This commit is contained in:
Soybean
2022-03-12 16:21:40 +08:00
parent 4093dcd6dc
commit 75de2b0604
131 changed files with 1174 additions and 1140 deletions

View File

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