|
@@ -2307,14 +2307,12 @@
|
|
data: JSON.stringify(data),
|
|
data: JSON.stringify(data),
|
|
contentType: "application/json",
|
|
contentType: "application/json",
|
|
}).done((response) => {
|
|
}).done((response) => {
|
|
- console.log('取得文章列表', response)
|
|
|
|
- console.log('response.files_content.length', response.files_content.length);
|
|
|
|
console.log('response.files_content', response.files_content);
|
|
console.log('response.files_content', response.files_content);
|
|
if (response.files_content.length) {
|
|
if (response.files_content.length) {
|
|
-
|
|
|
|
-
|
|
|
|
let resultHtml = "";
|
|
let resultHtml = "";
|
|
|
|
|
|
|
|
+ response.files_content.reverse(); // 更改排序
|
|
|
|
+
|
|
response.files_content.forEach((item) => {
|
|
response.files_content.forEach((item) => {
|
|
let badges = item.tags.map(tag => `<p>${tag}</p>`).join(' ');
|
|
let badges = item.tags.map(tag => `<p>${tag}</p>`).join(' ');
|
|
let itemStr = JSON.stringify(item);
|
|
let itemStr = JSON.stringify(item);
|