소스 검색

bug修改

ysc 1 년 전
부모
커밋
08dae22c6a
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/views/mixins/task.js

+ 3 - 0
src/views/mixins/task.js

@@ -27,6 +27,9 @@ export default {
 
   methods: {
     checkRichText(text) {
+      if (!text) {
+        return false
+      }
       text = text.replaceAll('<p>', '').replaceAll('</p>', '').replaceAll('<br>', '').replaceAll('&nbsp;', '').trim();
       return text.length > 0 ? true : false
     },