fix: baseUrl, condition
This commit is contained in:
parent
6942d5af64
commit
893b0a8c2a
2 changed files with 4 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ function change(e: Event) {
|
||||||
currentIndex.value = file.value.length;
|
currentIndex.value = file.value.length;
|
||||||
|
|
||||||
if (_file) {
|
if (_file) {
|
||||||
currentIndex.value = file.length + 1;
|
currentIndex.value = file.value.length + 1;
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
reader.readAsDataURL(_file);
|
reader.readAsDataURL(_file);
|
||||||
reader.onload = () => {
|
reader.onload = () => {
|
||||||
|
|
@ -248,7 +248,7 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
|
||||||
class="bordered row items-center justify-between q-pa-sm"
|
class="bordered row items-center justify-between q-pa-sm"
|
||||||
style="height: 50px"
|
style="height: 50px"
|
||||||
>
|
>
|
||||||
{{ $t(currentMode) }}
|
{{ currentMode && $t(currentMode) }}
|
||||||
<div class="row" v-if="!hideAction">
|
<div class="row" v-if="!hideAction">
|
||||||
<UndoButton icon-only type="button" />
|
<UndoButton icon-only type="button" />
|
||||||
<SaveButton
|
<SaveButton
|
||||||
|
|
|
||||||
|
|
@ -397,7 +397,7 @@ async function fetchBranchById(id: string) {
|
||||||
formBankBook.value = formBankBook.value.map((v) => {
|
formBankBook.value = formBankBook.value.map((v) => {
|
||||||
return {
|
return {
|
||||||
...v,
|
...v,
|
||||||
bankUrl: `${apiBaseUrl}/branch/${res.id}/bank-qr/${v.id}?ts=${Date.now()}`,
|
bankUrl: `${baseUrl}/branch/${res.id}/bank-qr/${v.id}?ts=${Date.now()}`,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -833,7 +833,7 @@ watch(
|
||||||
watch(
|
watch(
|
||||||
() => qrCodeFile.value,
|
() => qrCodeFile.value,
|
||||||
() => {
|
() => {
|
||||||
if (qrCodeFile !== null) isQrCodeEdit.value = true;
|
if (qrCodeFile.value !== null) isQrCodeEdit.value = true;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue