diff --git a/src/stores/address/index.ts b/src/stores/address/index.ts index fe1be66b..16167fab 100644 --- a/src/stores/address/index.ts +++ b/src/stores/address/index.ts @@ -43,7 +43,7 @@ const useAddressStore = defineStore('api-address', () => { async function fetchProvince() { if (province.value) return province.value; - const res = await api.get(`/address/province`); + const res = await api.get('/address/province'); if (!res) return false; diff --git a/src/stores/branch/index.ts b/src/stores/branch/index.ts index 4ebe8fab..8d80f3ec 100644 --- a/src/stores/branch/index.ts +++ b/src/stores/branch/index.ts @@ -2,7 +2,7 @@ import { ref } from 'vue'; import { defineStore } from 'pinia'; import { Pagination } from '../types'; import { api } from 'src/boot/axios'; -import { Branch, BranchCreate, BranchWithChildren } from './types'; +import { Branch, BranchCreate } from './types'; const useBranchStore = defineStore('api-branch', () => { const data = ref>(); @@ -234,7 +234,7 @@ const useBranchStore = defineStore('api-branch', () => { const res = await api.get<{ hq: number; br: number; - }>(`/branch/stats`, { + }>('/branch/stats', { headers: { 'X-Session-Id': flow?.sessionId, 'X-Rtid': flow?.refTransactionId, diff --git a/src/stores/user/index.ts b/src/stores/user/index.ts index 4b45c31b..d5912cfa 100644 --- a/src/stores/user/index.ts +++ b/src/stores/user/index.ts @@ -353,7 +353,7 @@ const useUserStore = defineStore('api-user', () => { refTransactionId: string; transactionId: string; }) { - const res = await api.get(`/user/type-stats`, { + const res = await api.get('/user/type-stats', { headers: { 'X-Session-Id': flow?.sessionId, 'X-Rtid': flow?.refTransactionId,