You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

461 B

HTTP request

this project use axios for http service, file located in src/utils/request.js

Custom Header

As for privilege access or modify cookie, you could add header param by yourself

axios.defaults.headers.common['Authorization'] = 'token'

Or

axios.interceptors.request.use(function (config) {
  config.headers.token = window.localStorage.getItem('token');
  return config;
}, function (error) {
  return Promise.reject(error);
});