浏览代码

بهبود پنل کاربر

hgh 1 年之前
父节点
当前提交
87df8f5fc2
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      src/components/Widgets/Classroom/UserClassroomCard/UserClassroomCard.vue

+ 1 - 1
src/components/Widgets/Classroom/UserClassroomCard/UserClassroomCard.vue

@@ -112,7 +112,7 @@ export default {
     getClassroomTitleCaption(title) {
       const match = title.match(/^(.*?)\s*\((.*?)\)$/)
       if (match) {
-        const insideParenthesis = match[2]
+        const insideParenthesis = match[2].split('-')[0].trim()
         return `${insideParenthesis}`
       } else {
         return ''