@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.
- package/package.json +1 -1
- package/src/request.js +1 -1
package/package.json
CHANGED
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
|
}
|