zmdms-utils 0.0.92 → 0.0.93
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/es/request.js +3 -1
- package/package.json +1 -1
- package/src/request.ts +3 -1
package/dist/es/request.js
CHANGED
|
@@ -243,7 +243,9 @@ var AxiosRequest = /** @class */ (function () {
|
|
|
243
243
|
}
|
|
244
244
|
if (isAuth) {
|
|
245
245
|
var token = getPreToken();
|
|
246
|
-
|
|
246
|
+
if (token) {
|
|
247
|
+
newOptions.headers[this.tokenKey] = token;
|
|
248
|
+
}
|
|
247
249
|
}
|
|
248
250
|
// 遍历params,将undefined值 转为null值
|
|
249
251
|
if (newOptions.data) {
|
package/package.json
CHANGED
package/src/request.ts
CHANGED