no message
This commit is contained in:
parent
7f7aac287e
commit
eaa32235c5
@ -2,7 +2,7 @@ const projectBaseURL = "https://project.gter.net"
|
|||||||
|
|
||||||
if (["localhost", "127.0.0.1"].includes(location.hostname)) {
|
if (["localhost", "127.0.0.1"].includes(location.hostname)) {
|
||||||
axios.defaults.headers = {
|
axios.defaults.headers = {
|
||||||
"Authorization": "97d1c7b2fe6dec05aaf52c0f3b9130e8",
|
Authorization: "97d1c7b2fe6dec05aaf52c0f3b9130e8",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,6 +127,8 @@ function getBaseData() {
|
|||||||
|
|
||||||
const currentTime = new Date().getTime()
|
const currentTime = new Date().getTime()
|
||||||
const timeDiff = currentTime - parseInt(storedTime)
|
const timeDiff = currentTime - parseInt(storedTime)
|
||||||
|
console.log(storedTime && storedData && timeDiff <= 5 * 60 * 1000)
|
||||||
|
|
||||||
if (storedTime && storedData && timeDiff <= 5 * 60 * 1000) {
|
if (storedTime && storedData && timeDiff <= 5 * 60 * 1000) {
|
||||||
// 在5分钟内,使用本地存储的数据
|
// 在5分钟内,使用本地存储的数据
|
||||||
const basicData = JSON.parse(storedData)
|
const basicData = JSON.parse(storedData)
|
||||||
|
Loading…
Reference in New Issue
Block a user