<!--
 * @Author: 文贝
 * @Date: 2022-03-22 18:19:18
 * @LastEditors: 文贝
 * @LastEditTime: 2022-11-10 16:30:43
 * @Description:
 * @FilePath: \src\views\test-demo1\index.vue
-->
<template>
  <div>
    test-demo1:{{ userCode }}-{{ name }}
    <test-component1 v-permission="permissions.add" :text="displayText" />
  </div>
</template>

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

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