chore: format
This commit is contained in:
parent
4cd5ee39e7
commit
b53d46fb0a
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue