加上版本号区分新旧版本
This commit is contained in:
@@ -6,6 +6,7 @@ axios.defaults.timeout = 120000;
|
||||
axios.interceptors.request.use(function (config) {
|
||||
var token = localStorage.getItem("user_token");
|
||||
config.headers.Authorization = token;
|
||||
config.headers.appVersion = "1.1";
|
||||
return config;
|
||||
}, function (error) {
|
||||
return Promise.reject(error);
|
||||
|
||||
Reference in New Issue
Block a user