<!--
 * @Author: 文贝
 * @Date: 2022-03-22 18:19:18
 * @LastEditors: 文贝
 * @LastEditTime: 2022-04-16 15:17:48
 * @Description:
 * @FilePath: \src\views\test-demo2\index.vue
-->
<template>
  <div>
    test-demo2:{{ userCode }}-{{ name }}
    <test-component2 v-permission="permissions.add" :text="displayText" />
  </div>
</template>

<script>
import TestComponent2 from './components/TestComponent2'
import { mapGetters } from 'vuex'
import permissions from './permissions'

export default {
  name: 'TestDemo2',
  components: {
    TestComponent2
  },
  data() {
    return {
      displayText: 'TestComponent2',
      permissions
    }
  },
  computed: {
    ...mapGetters(['userCode', 'name'])
  },
  created() {}
}
</script>
