修改前端推荐搜素样式,链接推荐搜索前后端

Change-Id: I76d3be2a2cb6f553fc6c4512e11b6de3341ad0c4
diff --git a/JWLLL/main_online.py b/JWLLL/main_online.py
index 0c2dd7b..f8fdc07 100644
--- a/JWLLL/main_online.py
+++ b/JWLLL/main_online.py
@@ -579,11 +579,14 @@
         elif sort_by == "title_desc":
             results.sort(key=lambda x: x.get("title", ""), reverse=True)
     
-    # 最终处理:清理不需要返回的字段
+    # 最终处理:清理不需要返回的字段,并将 datetime 转为字符串
     for item in results:
         item.pop("description", None)
         item.pop("tags", None)
         item.pop("relevance_score", None)
+        for k, v in item.items():
+            if hasattr(v, 'isoformat'):
+                item[k] = v.isoformat(sep=' ', timespec='seconds')
 
     return Response(json.dumps({"results": results}, ensure_ascii=False), mimetype='application/json; charset=utf-8')