|
|
|
@ -23,7 +23,7 @@ export default { |
|
|
|
}) || {}; |
|
|
|
}) || {}; |
|
|
|
let date1 = this.$dayjs(token.datetime); |
|
|
|
let date1 = this.$dayjs(token.datetime); |
|
|
|
let date2 = this.$dayjs(); |
|
|
|
let date2 = this.$dayjs(); |
|
|
|
const date = date1.diff(date2, 'month'); |
|
|
|
const date = date2.diff(date1, 'seconds'); |
|
|
|
if (validatenull(date)) return; |
|
|
|
if (validatenull(date)) return; |
|
|
|
if (date >= this.website.tokenTime && !this.refreshLock) { |
|
|
|
if (date >= this.website.tokenTime && !this.refreshLock) { |
|
|
|
this.refreshLock = true; |
|
|
|
this.refreshLock = true; |
|
|
|
@ -32,7 +32,8 @@ export default { |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
this.refreshLock = false; |
|
|
|
this.refreshLock = false; |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
.catch((err) => { |
|
|
|
|
|
|
|
console.log(err) |
|
|
|
this.refreshLock = false; |
|
|
|
this.refreshLock = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|