瀏覽代碼

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

任一存 1 年之前
父節點
當前提交
5724abf4f0
共有 1 個文件被更改,包括 1 次插入0 次删除
  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))