Przeglądaj źródła

fix:画作列表页,朝代封面里的作者姓名,用正则去除括号里的拼音

任一存 1 rok temu
rodzic
commit
5724abf4f0
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/views/PaintingList.vue

+ 1 - 0
src/views/PaintingList.vue

@@ -313,6 +313,7 @@ const ageRenderInfo = {
 function getAuthorList(paintingGroup) {
   const temp = paintingGroup.map((item) => {
     let author = item['作者']
+    author = author.replace(new RegExp('(.*)', 'g'), '')
     return author
   })
   return Array.from(new Set(temp))