Kaynağa Gözat

日常开发

linxuxiang 1 ay önce
ebeveyn
işleme
c72f571466
1 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3 4
      src/views/test/index.vue

+ 3 - 4
src/views/test/index.vue

@@ -13,7 +13,7 @@
             }}</li>
         </ul>
       </div>
-      <div class="menu" v-if="projectList.length"
+      <div class="menu" v-if="projectList.length" :key="projectList.length"
         :class="{ 'menu1': projectList.length <= 10, 'menu2': projectList.length > 10, 'prohibit': !currentTask.id }">
         <swiper :slides-per-view="5" :modules="[Grid]" :grid="{
           fill: projectList.length <= 10 ? 'row' : 'column',
@@ -365,9 +365,8 @@ $waiPadding: 6.51rem;
     &:nth-child(2),
     &:nth-child(4),
     &:nth-child(6),
-    &:nth-child(7),
-    &:nth-child(9),
-    &:nth-child(11) {
+    &:nth-child(8),
+    &:nth-child(10) {
       .li {
         background: radial-gradient(167% 126% at 97% 6%, #35FFC6 0%, #00FFE8 100%);
       }