浏览代码

修改首页

zs 1 年之前
父节点
当前提交
7edab9f6d5
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 () => {