<template>
  <div class="navbar-news">
    <!-- 权限写法 -->
    <!-- <div class="nn-item" v-if="$hasPermission2('sys_test_add')" > -->
    <div class="nn-item" @click="showTask">
      <i class="smp-nav-icon smp-ni-news shansuo">
      </i>
      <span>5</span>
    </div>
    <div class="nn-item" @click="showNotice">
      <i class="smp-nav-icon smp-ni-notice">
      </i>
      <span>7</span>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      isOpen: false

    }
  },
  // computed: {
  //   permission () {
  //     return this.$store.state.permission
  //   }
  // },
  methods: {
    showNews () {},
    showNotice () {
      this.$parent.$parent.showNotice()
    },
    showTask () {
      this.$parent.$parent.showTask()
    }
  }
}
</script>

<style lang="scss">
.navbar-news{
  // padding: 0!important;
}
</style>
