Selaa lähdekoodia

文章搜索容错处理

Aslee 4 vuotta sitten
vanhempi
commit
c5b3ffd95d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main/resources/static/js/article/list.js

+ 2 - 2
src/main/resources/static/js/article/list.js

@@ -65,8 +65,8 @@ var articleList = new Vue({
                             intro: item.a_intro,
                             typeId: item.a_type_id,
                             type: item.a_type_text,
-                            labelIds: item.a_label_ids.replace(/[^[\d|\S]]*/g, ',').split(","),
-                            labels: item.a_label_text.replace(/[^[\d|\S]]*/g, ',').split(","),
+                            labelIds: item.a_label_ids,
+                            labels: item.a_label_text,
                             pv: item.a_pv,
                             publisher: item.a_publisher,
                             publishDate: item.a_publish_date