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;
|
||||
|
||||
if (_file) {
|
||||
currentIndex.value = file.length + 1;
|
||||
currentIndex.value = file.value.length + 1;
|
||||
const reader = new FileReader();
|
||||
reader.readAsDataURL(_file);
|
||||
reader.onload = () => {
|
||||
|
|
@ -248,7 +248,7 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
|
|||
class="bordered row items-center justify-between q-pa-sm"
|
||||
style="height: 50px"
|
||||
>
|
||||
{{ $t(currentMode) }}
|
||||
{{ currentMode && $t(currentMode) }}
|
||||
<div class="row" v-if="!hideAction">
|
||||
<UndoButton icon-only type="button" />
|
||||
<SaveButton
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ async function fetchBranchById(id: string) {
|
|||
formBankBook.value = formBankBook.value.map((v) => {
|
||||
return {
|
||||
...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(
|
||||
() => 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