diff --git a/public/post/demo01/index.html b/public/post/demo01/index.html index 08e9b115..2305401a 100644 --- a/public/post/demo01/index.html +++ b/public/post/demo01/index.html @@ -93,7 +93,7 @@ var currentPath = "\/post\/demo01\/"; - $.ajaxSettings.async = false; + $.ajaxSettings.async = true; $.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) { var data = response.data.data; console.log(data); diff --git a/public/post/demo03/index.html b/public/post/demo03/index.html index 87937b09..4a8690dc 100644 --- a/public/post/demo03/index.html +++ b/public/post/demo03/index.html @@ -95,7 +95,7 @@ var currentPath = "\/post\/demo03\/"; - $.ajaxSettings.async = false; + $.ajaxSettings.async = true; $.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) { var data = response.data.data; console.log(data); diff --git a/public/post/my-first-post/index.html b/public/post/my-first-post/index.html index 6779a084..db77d41f 100644 --- a/public/post/my-first-post/index.html +++ b/public/post/my-first-post/index.html @@ -92,7 +92,7 @@ var currentPath = "\/post\/my-first-post\/"; - $.ajaxSettings.async = false; + $.ajaxSettings.async = true; $.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) { var data = response.data.data; console.log(data); diff --git a/public/post/my-second-post/index.html b/public/post/my-second-post/index.html index 97e22ffe..3fc78257 100644 --- a/public/post/my-second-post/index.html +++ b/public/post/my-second-post/index.html @@ -92,7 +92,7 @@ var currentPath = "\/post\/my-second-post\/"; - $.ajaxSettings.async = false; + $.ajaxSettings.async = true; $.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) { var data = response.data.data; console.log(data); diff --git a/themes/Ying/layouts/_default/single.html b/themes/Ying/layouts/_default/single.html index 55c78511..c2463588 100644 --- a/themes/Ying/layouts/_default/single.html +++ b/themes/Ying/layouts/_default/single.html @@ -29,7 +29,7 @@ var currentPath = "{{ .RelPermalink }}"; // 动态获取评论并发布弹幕 - $.ajaxSettings.async = false; + $.ajaxSettings.async = true; $.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) { var data = response.data.data; console.log(data);