uniapp-request-sdk 1.4.7 → 1.4.8
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/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -126,7 +126,7 @@ var UniRequest = /*#__PURE__*/function () {
|
|
|
126
126
|
var appVersion = (_a = uni.getSystemInfoSync()) === null || _a === void 0 ? void 0 : _a.appVersion;
|
|
127
127
|
/** 如果是http开头的,则不需要加入baseUrl */
|
|
128
128
|
if (!/^https?:\/\//.test(url)) {
|
|
129
|
-
url = "".concat(this.baseUrl.replace(/\/$/, ''), "/").concat(params.url.replace(/^\//, ''), "?t=").concat(Date.now()
|
|
129
|
+
url = "".concat(this.baseUrl.replace(/\/$/, ''), "/").concat(params.url.replace(/^\//, ''), "?t=").concat(Date.now());
|
|
130
130
|
} else {
|
|
131
131
|
url = "".concat(params.url, "?t=").concat(Date.now());
|
|
132
132
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
var appVersion = (_a = uni.getSystemInfoSync()) === null || _a === void 0 ? void 0 : _a.appVersion;
|
|
133
133
|
/** 如果是http开头的,则不需要加入baseUrl */
|
|
134
134
|
if (!/^https?:\/\//.test(url)) {
|
|
135
|
-
url = "".concat(this.baseUrl.replace(/\/$/, ''), "/").concat(params.url.replace(/^\//, ''), "?t=").concat(Date.now()
|
|
135
|
+
url = "".concat(this.baseUrl.replace(/\/$/, ''), "/").concat(params.url.replace(/^\//, ''), "?t=").concat(Date.now());
|
|
136
136
|
} else {
|
|
137
137
|
url = "".concat(params.url, "?t=").concat(Date.now());
|
|
138
138
|
}
|