tried to use Toast, in antd-mobile, but mine is on the web side of PC, and the effect is not loaded.
import Axios from "axios"
Axios.interceptors.request.use(function (config) {
// ""
const token = window.localStorage.token;
if (token) {
config.headers.Authorization = `token ${token}`
}
return config
}, function (error) {
return Promise.reject(error);
});
Axios.interceptors.response.use(function (response) {
// ""
return response;
}, function (error) {
return Promise.reject(error);
});