@tmsfe/tms-core 0.0.217 → 0.0.218

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/request.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.217",
3
+ "version": "0.0.218",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
package/src/request.js CHANGED
@@ -433,7 +433,7 @@ export default class Request {
433
433
  }
434
434
 
435
435
  // 重试case2:token即将过期,静默刷新token,token有效期剩余不足一小时会返回X-Twt-Expire为1
436
- const needSilentRefreshLogin = res?.header?.['X-Twt-Expire'] === 1;
436
+ const needSilentRefreshLogin = +res?.header?.['X-Twt-Expire'] === 1;
437
437
  if (needSilentRefreshLogin) {
438
438
  loginRefresh();
439
439
  }