实训edge白屏

courseware
dinglink 5 years ago
parent 4cb90430e7
commit f5fafeb7f1

@ -11267,7 +11267,7 @@ Copyright © 2018 Basecamp, LLC
type: "GET", type: "GET",
dataType: "script", dataType: "script",
cache: true, cache: true,
async: true, async: false,
global: false, global: false,
// Only evaluate the response if it is successful (gh-4126) // 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' window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
} }
// 超管 // 超管
//debugType="admin"; debugType = "admin";
// 老师 // 老师
// debugType="teacher"; // debugType="teacher";
// 学生 // 学生
debugType="student"; // debugType="student";
@ -89,23 +89,27 @@ setpostcookie();
clearAllCookie() clearAllCookie()
if (timestamp && checkSubmitFlg === false) { if (timestamp && checkSubmitFlg === false) {
$.ajax({url:proxy,async:true,success:function(data){ $.ajax({
url: proxy, async: false, success: function (data) {
if (data.status === 0) { if (data.status === 0) {
timestamp = data.message; timestamp = data.message;
setpostcookie(); setpostcookie();
} }
}}) }
})
checkSubmitFlg = true checkSubmitFlg = true
window.setTimeout(() => { window.setTimeout(() => {
checkSubmitFlg = false; checkSubmitFlg = false;
}, 2000); }, 2000);
} else if (checkSubmitFlg === false) { } else if (checkSubmitFlg === false) {
$.ajax({url:proxy,async:true,success:function(data){ $.ajax({
url: proxy, async: false, success: function (data) {
if (data.status === 0) { if (data.status === 0) {
timestamp = data.message; timestamp = data.message;
setpostcookie(); setpostcookie();
} }
}}) }
})
checkSubmitFlg = true checkSubmitFlg = true
window.setTimeout(() => { window.setTimeout(() => {
checkSubmitFlg = false; checkSubmitFlg = false;
@ -256,11 +260,10 @@ export function initAxiosInterceptors(props) {
} }
setpostcookie(); setpostcookie();
} }
// // 拦截器导致关键的业务数据丢失,先注释
// console.log(config); // if (requestMap[config.url] === true) {
if (requestMap[config.url] === true) { // return false;
return false; // }
}
// // 非file_update请求 // // 非file_update请求
if (config.url.indexOf('update_file') === -1) { if (config.url.indexOf('update_file') === -1) {
requestMap[config.url] = true; requestMap[config.url] = true;

Loading…
Cancel
Save