no message

This commit is contained in:
A1300399510 2024-11-25 18:36:10 +08:00
parent 7f7aac287e
commit eaa32235c5

View File

@ -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)