refactor: move event handler to its parent
This commit is contained in:
parent
f8ec82626c
commit
fabadd5b8e
1 changed files with 13 additions and 13 deletions
|
|
@ -519,24 +519,24 @@ watch(locale, () => {
|
|||
dense
|
||||
id="hq-add-btn"
|
||||
class="q-mr-sm"
|
||||
@click="
|
||||
() => {
|
||||
if (!currentHq.id) {
|
||||
triggerCreate('headOffice');
|
||||
} else {
|
||||
triggerCreate(
|
||||
'subBranch',
|
||||
currentHq.id,
|
||||
currentHq.code,
|
||||
);
|
||||
}
|
||||
}
|
||||
"
|
||||
>
|
||||
<Icon
|
||||
icon="pixelarticons:plus"
|
||||
class="cursor-pointer"
|
||||
style="color: var(--foreground); scale: 1.5"
|
||||
@click="
|
||||
() => {
|
||||
if (!currentHq.id) {
|
||||
triggerCreate('headOffice');
|
||||
} else {
|
||||
triggerCreate(
|
||||
'subBranch',
|
||||
currentHq.id,
|
||||
currentHq.code,
|
||||
);
|
||||
}
|
||||
}
|
||||
"
|
||||
/>
|
||||
</q-btn>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue