lsc 2 years ago
parent
commit
99a03c37bf
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/components/student/studyStudent.vue
  2. 1 1
      src/components/studyStudent.vue

+ 1 - 1
src/components/student/studyStudent.vue

@@ -649,7 +649,7 @@
               <div>批</div>
               <div>
                 {{
-                  pz.username.length > 5
+                  pz.username && pz.username.length > 5
                   ? pz.username.substring(0, 5) + "..."
                   : pz.username
                 }}的批注

+ 1 - 1
src/components/studyStudent.vue

@@ -5016,7 +5016,7 @@
               <div>批</div>
               <div>
                 {{
-                  pz.username.length > 5
+                  pz.username && pz.username.length > 5
                     ? pz.username.substring(0, 5) + "..."
                     : pz.username
                 }}的批注