Comparing version 1.0.10 to 1.0.11
@@ -25,3 +25,6 @@ 'use strict'; | ||
// 请求前配置 去首位空格 | ||
_axios2['default'].interceptors.request.use(function (config) { | ||
if (store._mutations.length > 0) { | ||
return _axios2['default']; | ||
} | ||
var instanceRequest = _axios2['default'].interceptors.request.use(function (config) { | ||
var requestData = ''; // 防串改 参数集合 | ||
@@ -127,3 +130,3 @@ try { | ||
// 过滤响应 | ||
_axios2['default'].interceptors.response.use(function (result) { | ||
var instanceResponse = _axios2['default'].interceptors.response.use(function (result) { | ||
/* result 为服务器响应回来的数据 */ | ||
@@ -130,0 +133,0 @@ /* 方式一:直接返回处理后的 result */ |
{ | ||
"name": "one-sport", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "use for one-sport company", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
8305
184