refactor: check role
This commit is contained in:
parent
a5dd047ee5
commit
de8df46aef
3 changed files with 9 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ import type { QTableProps } from 'quasar';
|
|||
import { resetScrollBar } from 'src/stores/utils';
|
||||
import useBranchStore from 'stores/branch';
|
||||
import useFlowStore from 'stores/flow';
|
||||
import { isRoleInclude } from 'stores/utils';
|
||||
import {
|
||||
BranchWithChildren,
|
||||
BranchCreate,
|
||||
|
|
@ -1040,6 +1041,7 @@ watch(currentHq, () => {
|
|||
{{ $t('branch.allBranch') }}
|
||||
</div>
|
||||
<q-btn
|
||||
v-if="isRoleInclude(['head_of_admin', 'admin', 'system'])"
|
||||
round
|
||||
flat
|
||||
size="md"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue