refactor: header edit img

This commit is contained in:
Net 2024-09-11 17:59:49 +07:00
parent 1c467bff35
commit 0895714887
2 changed files with 5 additions and 3 deletions

View file

@ -179,8 +179,8 @@ watch(
:img="book.bankUrl"
@view="() => $emit('viewQr', i)"
@edit="
() => () => {
readonly ? '' : inputFile?.click(), (listIndex = i);
() => {
$emit('editQr', i);
}
"
icon="mdi-qrcode"

View file

@ -1780,6 +1780,7 @@ watch(currentHq, () => {
@edit-qr="
(i) => {
currentIndexQrCodeBank = i;
refQrCodeUpload && refQrCodeUpload.browse();
}
"
/>
@ -2061,6 +2062,7 @@ watch(currentHq, () => {
@edit-qr="
(i) => {
currentIndexQrCodeBank = i;
refQrCodeUpload.browse();
}
"
/>
@ -2213,7 +2215,7 @@ watch(currentHq, () => {
v-model:file="statusQrCodeFile as File"
v-model:image-url="statusQrCodeUrl"
@save="
() => {
(_file, imageUrl) => {
qrCodeDialog = false;
if (currentIndexQrCodeBank === -1) {
triggerEditQrCodeLine({ save: true });