refactor: handle set userRole messenger
This commit is contained in:
parent
fb1c0e9590
commit
c9202d8355
1 changed files with 4 additions and 0 deletions
|
|
@ -390,6 +390,10 @@ async function openDialog(
|
||||||
if (action === 'FORM') {
|
if (action === 'FORM') {
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
|
|
||||||
|
if (currentTab.value === 'MESSENGER') {
|
||||||
|
formData.value.userRole = 'messenger';
|
||||||
|
}
|
||||||
|
|
||||||
if (isRoleInclude(['branch_manager'])) {
|
if (isRoleInclude(['branch_manager'])) {
|
||||||
hqId.value =
|
hqId.value =
|
||||||
myBranch.value?.[0].isHeadOffice === true
|
myBranch.value?.[0].isHeadOffice === true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue