Przeglądaj źródła

feat:更新代码

jinx 3 lat temu
rodzic
commit
206d47b0a8
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/page/layout/slide.vue

+ 2 - 2
src/page/layout/slide.vue

@@ -111,7 +111,7 @@ export default {
     ]
 
     return {
-      actice_idx: 1,
+      actice_idx: '1',
       navs: navs
     }
   },
@@ -119,7 +119,7 @@ export default {
     let index = this.navs.findIndex((i) => {
       console.log(i.link.name, this.$route.name)
       return i.link.name === this.$route.name
-    })
+    }).toString()
     console.log(index)
 
     if (index !== -1) {