fix: missing query

This commit is contained in:
Methapon2001 2024-04-10 14:56:57 +07:00
parent a5a4e4018f
commit edf2a5121f

View file

@ -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;