<template>
  <div data-v='' class="zjtodo__chat">
    <!-- <div @click="aaaa">aaa</div>
    <div @click="bbbb">bbb</div> -->
    <div class="main-zjtodo_content">
      <!-- 测试   npm待办 -->
      <div>
        <TodoList @closeCollapse="closeCollapse" @emitunread="emitunread"></TodoList>
      </div>
      <!-- <left-nav></left-nav>
      <right-content></right-content> -->
    </div>
  </div>
</template>
<script>

// import leftNav from './leftNav.vue'
// import rightContent from './rightContent.vue'
import TodoList from './Todo/TodoList.vue'
import Vue from 'vue'
// import * as AiStore from '@lib/store/utils'

export default {
  name: 'ZJKJQgbnpmTodo',
  components: {
    // leftNav,
    // rightContent
    TodoList
  },
  props: {
    title: {
      type: String,
      default: ''
    },
    isFull: {
      type: Boolean,
      default: true
    },
    tabVal: {
      type: String,
      default: '1'
    }
  },

  computed: {},
  data() {
    return {}
  },
  watch: {},
  methods: {
    emitunread(val){
      this.$emit('UnreadFun',val)
    },
    closeCollapse() {
      if (!window.electron) {
         this.$router.push({ path: "/" });
         this.$store.commit('SET_gethomeActiveIndexTag', 'home')
      }
     
    }
  },
  created() {}
}
</script>
<style lang="scss" scoped>
.main-zjtodo_content {
  width: 100%;
  // height: calc(100% - 50px);
  // display: flex;
}
</style>
