refactor: Change conditions currentTab
This commit is contained in:
parent
9249dfee08
commit
37fe7db89e
1 changed files with 9 additions and 1 deletions
|
|
@ -1598,7 +1598,15 @@ const emptyCreateDialog = ref(false);
|
|||
? 'customerEmployerAdd'
|
||||
: 'customerEmployeeAdd'
|
||||
"
|
||||
@trigger="() => createEmployeeForm()"
|
||||
@trigger="
|
||||
() => {
|
||||
if (currentTab === 'employer') {
|
||||
emptyCreateDialog = true;
|
||||
} else {
|
||||
createEmployeeForm();
|
||||
}
|
||||
}
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue