guhongwei 4 gadi atpakaļ
vecāks
revīzija
57eb51bfba
2 mainītis faili ar 39 papildinājumiem un 0 dzēšanām
  1. 7 0
      src/router/index.js
  2. 32 0
      src/views/channel/index.vue

+ 7 - 0
src/router/index.js

@@ -244,6 +244,13 @@ const routes = [
     meta: { title: '绑定授权', isleftarrow: false },
     component: () => import('../views/followbind.vue'),
   },
+  // 11-9新菜单
+  {
+    path: '/channel/index',
+    name: 'channel',
+    meta: { title: '科技在线频道', isleftarrow: false },
+    component: () => import('../views/channel/index.vue'),
+  },
 ];
 
 const router = new VueRouter({

+ 32 - 0
src/views/channel/index.vue

@@ -0,0 +1,32 @@
+<template>
+  <div id="index">
+    <el-row>
+      <el-col :span="24">
+        <p>列表</p>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+  name: 'index',
+  props: {},
+  components: {},
+  data: function() {
+    return {};
+  },
+  created() {},
+  methods: {},
+  computed: {
+    ...mapState(['user']),
+  },
+  watch: {},
+};
+</script>
+
+<style lang="less" scoped></style>