refactor: handle set userRole messenger

This commit is contained in:
Thanaphon Frappet 2024-11-04 14:46:05 +07:00
parent fb1c0e9590
commit c9202d8355

View file

@ -390,6 +390,10 @@ async function openDialog(
if (action === 'FORM') {
modal.value = true;
if (currentTab.value === 'MESSENGER') {
formData.value.userRole = 'messenger';
}
if (isRoleInclude(['branch_manager'])) {
hqId.value =
myBranch.value?.[0].isHeadOffice === true