实训edge白屏

courseware
dinglink 5 years ago
parent 4cb90430e7
commit f5fafeb7f1

@ -11267,7 +11267,7 @@ Copyright © 2018 Basecamp, LLC
type: "GET",
dataType: "script",
cache: true,
async: true,
async: false,
global: false,
// Only evaluate the response if it is successful (gh-4126)

@ -42,11 +42,11 @@ if (isDev) {
window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
}
// 超管
//debugType="admin";
debugType = "admin";
// 老师
// debugType="teacher";
// 学生
debugType="student";
// debugType="student";
@ -89,23 +89,27 @@ setpostcookie();
clearAllCookie()
if (timestamp && checkSubmitFlg === false) {
$.ajax({url:proxy,async:true,success:function(data){
$.ajax({
url: proxy, async: false, success: function (data) {
if (data.status === 0) {
timestamp = data.message;
setpostcookie();
}
}})
}
})
checkSubmitFlg = true
window.setTimeout(() => {
checkSubmitFlg = false;
}, 2000);
} else if (checkSubmitFlg === false) {
$.ajax({url:proxy,async:true,success:function(data){
$.ajax({
url: proxy, async: false, success: function (data) {
if (data.status === 0) {
timestamp = data.message;
setpostcookie();
}
}})
}
})
checkSubmitFlg = true
window.setTimeout(() => {
checkSubmitFlg = false;
@ -256,11 +260,10 @@ export function initAxiosInterceptors(props) {
}
setpostcookie();
}
//
// console.log(config);
if (requestMap[config.url] === true) {
return false;
}
// 拦截器导致关键的业务数据丢失,先注释
// if (requestMap[config.url] === true) {
// return false;
// }
// // 非file_update请求
if (config.url.indexOf('update_file') === -1) {
requestMap[config.url] = true;

Loading…
Cancel
Save