<template>
  <div id="index">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24"> 首页 </el-col>
        <el-col :span="24">
          <el-button type="primary" size="mini" @click="$router.push({ path: '/news/index' })">新闻咨讯</el-button>
          <el-button type="primary" size="mini" @click="$router.push({ path: '/service/index' })">科技服务</el-button>
          <el-button type="primary" size="mini" @click="$router.push({ path: '/market/index' })">技术超市</el-button>
          <el-button type="primary" size="mini" @click="$router.push({ path: '/train/index' })">宣传培训</el-button>
          <el-button type="primary" size="mini" @click="$router.push({ path: '/dynamic/index' })">数据动态</el-button>
        </el-col>
        <el-col :span="24">
          <el-button type="primary" size="mini" @click="$router.push({ path: '/login' })">管理登录</el-button>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'index',
  props: {},
  components: {},
  data: function () {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped></style>
