浏览代码

菜单跳转

tanxue 2 年之前
父节点
当前提交
67b30a6c40
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      components/mtaNav/pcNav.vue

+ 4 - 1
components/mtaNav/pcNav.vue

@@ -13,7 +13,7 @@
           <span class="head-popper-title">{{ item.title }}</span>
           <span class="head-popper-title">{{ item.title }}</span>
           <!--<span class="head-popper-des">{{ item.des }}</span>-->
           <!--<span class="head-popper-des">{{ item.des }}</span>-->
         </nuxt-link>
         </nuxt-link>
-      <span class="head-nav-btn" slot="reference" :class="{active: curActive === 'courseware'}">课程开发<i class="el-icon-arrow-down el-icon--right"></i></span>
+      <span class="head-nav-btn" slot="reference" :class="{active: curActive === 'courseware'}" @click="kckfBtn">课程开发<i class="el-icon-arrow-down el-icon--right"></i></span>
     </el-popover>
     </el-popover>
     <nuxt-link to="/news" :class="{active: curActive === 'news'}">新闻资讯</nuxt-link>
     <nuxt-link to="/news" :class="{active: curActive === 'news'}">新闻资讯</nuxt-link>
     <nuxt-link to="/introduction" :class="{active: curActive === 'introduction'}">关于我们</nuxt-link>
     <nuxt-link to="/introduction" :class="{active: curActive === 'introduction'}">关于我们</nuxt-link>
@@ -57,6 +57,9 @@ export default {
     headNavClick(){
     headNavClick(){
       this.$emit('headNavClick')
       this.$emit('headNavClick')
     },
     },
+    kckfBtn(){
+      this.$router.push({ path: '/courseware/synopsis' });
+    },
   },
   },
   computed: {
   computed: {
     curActive() {
     curActive() {