From e4ea3f9acf1ac91c89acb66c417e7a920138d724 Mon Sep 17 00:00:00 2001 From: dinglink <837816638@qq.com> Date: Fri, 20 Mar 2020 20:41:52 +0800 Subject: [PATCH] =?UTF-8?q?edge=E7=99=BD=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/public/js/applications.js | 2 +- public/react/src/AppConfig.js | 4 ++-- .../react/src/modules/courses/coursesHome/CoursesHomeCard.js | 4 ++-- public/react/src/modules/user/usersInfo/InfosCourse.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/react/public/js/applications.js b/public/react/public/js/applications.js index ad46a5aa0..e99bf61cd 100644 --- a/public/react/public/js/applications.js +++ b/public/react/public/js/applications.js @@ -11267,7 +11267,7 @@ Copyright © 2018 Basecamp, LLC type: "GET", dataType: "script", cache: true, - async: false, + async: true, global: false, // Only evaluate the response if it is successful (gh-4126) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index a3efafdb9..afed0fa9d 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -90,7 +90,7 @@ function railsgettimes(proxy) { if (timestamp && checkSubmitFlg === false) { $.ajax({ - url: proxy, async: false, success: function (data) { + url: proxy, async: true, success: function (data) { if (data.status === 0) { timestamp = data.message; setpostcookie(); @@ -103,7 +103,7 @@ function railsgettimes(proxy) { }, 2000); } else if (checkSubmitFlg === false) { $.ajax({ - url: proxy, async: false, success: function (data) { + url: proxy, async: true, success: function (data) { if (data.status === 0) { timestamp = data.message; setpostcookie(); diff --git a/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js b/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js index b9925c051..c021c07e7 100644 --- a/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js +++ b/public/react/src/modules/courses/coursesHome/CoursesHomeCard.js @@ -93,7 +93,7 @@ class CoursesHomeCard extends Component{ {item.school}
-{/* +{item.teacher && item.teacher.real_name}
{item&&item.school}
- {/*