centaline-data-driven 1.5.10 → 1.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -128,7 +128,7 @@ Axios.defaults.maxContentLength = 400000;
128
128
  const api = {
129
129
  get(url, params, callback) {
130
130
  if (common.flagRouterSelf()) {
131
- url = url + params.action;
131
+ url = url + (url.substr(-1)=='/'?'':'/') + params.action;
132
132
  params = params.para;
133
133
  }
134
134
  return Axios.get(url, params, {
@@ -143,7 +143,7 @@ const api = {
143
143
  },
144
144
  post(url, params, callback) {
145
145
  if (common.flagRouterSelf()) {
146
- url = url + params.action;
146
+ url = url + (url.substr(-1)=='/'?'':'/') + params.action;
147
147
  params = params.para;
148
148
  }
149
149
  return Axios.post(url, params, {
@@ -245,7 +245,7 @@ const api = {
245
245
  },
246
246
  postHandler(url, params, scripts) {
247
247
  if (common.flagRouterSelf()) {
248
- url = url + params.action;
248
+ url = url + (url.substr(-1)=='/'?'':'/') + params.action;
249
249
  params = params.para;
250
250
  }
251
251
  return Axios.post(url, params, {