reset password don't set authorization header

This commit is contained in:
MaysWind
2023-08-27 22:21:10 +08:00
parent 6c30527684
commit c1d90485a1
+2 -1
View File
@@ -17,7 +17,7 @@ axios.defaults.timeout = api.defaultTimeout;
axios.interceptors.request.use(config => {
const token = userState.getToken();
if (token) {
if (token && !config.noAuth) {
config.headers.Authorization = `Bearer ${token}`;
}
@@ -114,6 +114,7 @@ export default {
email,
password
}, {
noAuth: true,
ignoreError: true
});
},