| 1234567891011121314151617 |
- import { mapGetters } from 'vuex'
- import { State } from '@/constant'
- export default {
- computed: {
- ...mapGetters(['isOperator'])
- },
- render (h) {
- const canEdit = this.isOperator
- return h(canEdit ? 'Designer' : 'Viewer', {
- props: {
- ...this.$attrs,
- status: canEdit ? void 0 : State.RESOLVED
- }
- })
- }
- }
|