no message

This commit is contained in:
DESKTOP-RQ919RC\Pc 2025-04-03 18:41:01 +08:00
parent b3b011bfd9
commit af959da858

View File

@ -49,9 +49,11 @@ function $ajaxget(url, data) {
emulateJSON: true,
withCredentials: true,
headers: {
"Cache-Control": "max-age=3600",
// 'cache-control': 'no-cache',
// 'Pragma': 'no-cache'
}
},
})
.then((res) => {
var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data;
@ -139,7 +141,7 @@ function getBaseData() {
// return
// }
// https://api.gter.net/v1/program/details program/basicData
location.host.indexOf("demo.gter.net") > -1
location.host.indexOf("demo.gter.net") > -1;
let url = location.host.indexOf("demo.gter.net") == -1 ? "/api/home/basicData" : "/v1/program/basicData";
$ajaxget(url).then((res) => {
if (res.code != 200) return;