zs 1 vuosi sitten
vanhempi
commit
7edab9f6d5
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/views/index/index.vue

+ 2 - 2
src/views/index/index.vue

@@ -63,7 +63,7 @@
                 :span="6"
                 v-for="(item, index) in menuList"
                 :key="index"
-                @click="switchMenu(item)"
+                @click="switchMenu(item.href)"
               >
                 <div class="thr_1">
                   <div class="title">{{ item.title }}</div>
@@ -117,7 +117,7 @@ const toCommon = (type) => {
 }
 // 点击指定模块
 const switchMenu = async (item) => {
-  router.push({ path: `/${item.href}` })
+  router.push({ path: `/${item}` })
 }
 // 打开管理端
 const toOpen = async () => {