lsc 2 年之前
父節點
當前提交
99a03c37bf
共有 2 個文件被更改,包括 2 次插入2 次删除
  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
                 }}的批注