<template>
  <div class="flex flex-col full-height full-width">
    <top-serach v-if="type === 0" />
    <owner-serach v-else-if="type === 1" />
    <div class="full-width mt-10">
      <dash />
    </div>
  </div>
</template>

<route>
{
path: '/project',
name: '项目管理',
meta: {keepAlive: true}
}
</route>

<script>
import topSerach from './component/top_serach.vue'
import ownerSerach from './component/owner_serach.vue'
import dash from './component/dash.vue'
import { useStore } from '@/store/user.js'

import tokenStore from '../../store/token.js'

export default {
  name: '项目管理',
  components: { topSerach, dash, ownerSerach },
  setup() {
    const store = useStore()
    const token = tokenStore()
    return { store, token }
  },
  data() {
    return {
      type: 1
    }
  },
  created() {},
  methods: {
    push() {
      this.$router.push({ path: '/setting', query: { id: 12, type: 'test' } })
    }
  }
}
</script>

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