lex 1 anno fa
parent
commit
e300823fe0
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/views/attend-class/index.tsx

+ 1 - 2
src/views/attend-class/index.tsx

@@ -342,7 +342,6 @@ export default defineComponent({
       if (data.type === 'preview') {
         rightList.splice(6, 1);
       }
-
       rollCallStudentList();
     });
 
@@ -1675,7 +1674,7 @@ export default defineComponent({
                   trigger: () => <img src={item.icon} />,
                   default: (
                     <>
-                      {index === 0 && data.type === 'preview'
+                      {index === rightList.length - 2 && data.type === 'preview'
                         ? item.name2
                         : item.name}
                     </>