密码登录

This commit is contained in:
尹吉欢
2018-03-30 14:32:57 +08:00
parent be7ca18a25
commit bf5ad8ee09
2 changed files with 161 additions and 1 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ axios.defaults.headers.post['Content-Type'] = 'application/json';
// 添加请求拦截器
axios.interceptors.request.use(function (config) {
config.headers.Authorization = '111111111'
var token = localStorage.getItem("user_token");
config.headers.Authorization = token
return config;
}, function (error) {
return Promise.reject(error);