소스 검색

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

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 ''