@xtdev/bff-request-miniprogram
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -70,2 +70,4 @@ class BFFRequest { | ||
return new Promise((resolve, reject) => { | ||
if (this.baseURL && !url.startsWith('http')) | ||
url = this.baseURL + url; | ||
const opt = Object.assign(Object.assign({ url, data: params, method, dataType: 'json', responseType: 'text' }, arg), { success: (res) => { | ||
@@ -72,0 +74,0 @@ this.responseInterceptor && this.responseInterceptor(res); |
{ | ||
"name": "@xtdev/bff-request-miniprogram", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "a http request for xiantan BFF", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -81,2 +81,3 @@ /// <reference path="node_modules/wechat-miniprogram/index.d.ts" | ||
return new Promise((resolve, reject) => { | ||
if(this.baseURL && !url.startsWith('http')) url = this.baseURL + url | ||
const opt = { | ||
@@ -83,0 +84,0 @@ url, |
6590
186