chore: format

This commit is contained in:
Methapon2001 2024-04-10 20:28:28 +07:00
parent 4cd5ee39e7
commit b53d46fb0a
3 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ const useAddressStore = defineStore('api-address', () => {
async function fetchProvince() {
if (province.value) return province.value;
const res = await api.get<Province[]>(`/address/province`);
const res = await api.get<Province[]>('/address/province');
if (!res) return false;

View file

@ -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<Pagination<Branch[]>>();
@ -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,

View file

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