fix/chore: agencies indexDeleteQrCodeBank undefined handle / remove log
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s

This commit is contained in:
puriphatt 2025-07-11 13:54:28 +07:00
parent af1f74bdda
commit 22e11cf699
2 changed files with 1 additions and 7 deletions

View file

@ -214,7 +214,6 @@ async function submit(opt?: { selectedImage: string }) {
...v,
})),
};
console.log('payload', payload);
if (
(pageState.isDrawerEdit && currAgenciesData.value?.id) ||
(opt?.selectedImage && currAgenciesData.value?.id)

View file

@ -35,8 +35,6 @@ export const useInstitution = defineStore('institution-store', () => {
}) {
const { payload, ...params } = opts || {};
console.log(params.query);
const res = payload
? await api.post<PaginationResult<Institution>>(
'/institution/list',
@ -111,8 +109,6 @@ export const useInstitution = defineStore('institution-store', () => {
if (!!res.data.bank && !!data.bank.length) {
for (let i = 0; i < data.bank?.length; i++) {
if (data.bank[i].bankQr) {
console.log(i);
console.log(data.bank[i].bankQr);
await api
.put(
`/institution/${res.data.id}/bank-qr/${res.data.bank[i].id}`,
@ -127,8 +123,7 @@ export const useInstitution = defineStore('institution-store', () => {
}
}
if (opts.indexDeleteQrCodeBank && opts.indexDeleteQrCodeBank.length > 0) {
console.log('delete');
if (opts?.indexDeleteQrCodeBank && opts?.indexDeleteQrCodeBank.length > 0) {
opts.indexDeleteQrCodeBank.forEach(async (i) => {
await api
.delete(`/institution/${res.data.id}/bank-qr/${res.data.bank[i].id}`)