From edf2a5121f7107b73dc76f8f4d38d9e7adc33f8c Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:56:57 +0700 Subject: [PATCH] fix: missing query --- src/stores/branch/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/branch/index.ts b/src/stores/branch/index.ts index 0c00ed0d..fedf3cb5 100644 --- a/src/stores/branch/index.ts +++ b/src/stores/branch/index.ts @@ -30,6 +30,7 @@ const useBranchStore = defineStore('api-branch', () => { if (opts?.page && opts.page > 0) params.append('page', `${opts.page}`); if (opts?.zipCode) params.append('zipCode', opts.zipCode); if (opts?.query) params.append('query', opts.query); + if (opts?.filter) params.append('filter', opts.filter); if (opts?.tree) params.append('tree', 'true'); const query = params.toString(); @@ -239,7 +240,7 @@ const useBranchStore = defineStore('api-branch', () => { 'X-Rtid': flow?.refTransactionId, 'X-Tid': flow?.transactionId, }, - data: userType + data: userType, }); if (!res) return false;