token刷新定时任务补充非空前置条件

main
zhangqun 2 years ago
parent 64166d6d37
commit 64c414117f
  1. 1
      src/page/index/index.vue

@ -124,6 +124,7 @@
debug: true
}) || {};
const date = calcDate(token.datetime, new Date().getTime());
if (validatenull(token.content)) return;
if (validatenull(date)) return;
if (date.seconds >= this.website.tokenTime && !this.refreshLock) {
this.refreshLock = true;

Loading…
Cancel
Save