refactor: route and fn name
This commit is contained in:
parent
ae4bf285a0
commit
f5db816496
2 changed files with 14 additions and 4 deletions
|
|
@ -23,7 +23,17 @@ const routes: RouteRecordRaw[] = [
|
|||
},
|
||||
{
|
||||
path: '/customer-management',
|
||||
name: 'customerManagement',
|
||||
name: 'CustomerManagement',
|
||||
component: () => import('pages/03_customer-management/MainPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/customer-management/:customerId',
|
||||
name: 'CustomerSpecificManagement',
|
||||
component: () => import('pages/03_customer-management/MainPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/customer-management/:customerId/branch',
|
||||
name: 'CustomerBranchManagement',
|
||||
component: () => import('pages/03_customer-management/MainPage.vue'),
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
const flowStore = useFlowStore();
|
||||
const data = ref<Pagination<Customer[]>>();
|
||||
|
||||
async function fetchListById(
|
||||
async function fetchById(
|
||||
customerId: string,
|
||||
flow?: {
|
||||
sessionId?: string;
|
||||
|
|
@ -307,7 +307,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const { id, statusSave , code, ...playload } = data;
|
||||
const { id, statusSave, code, ...playload } = data;
|
||||
|
||||
const res = await api.post<
|
||||
Customer & {
|
||||
|
|
@ -467,7 +467,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
getStatsCustomer,
|
||||
|
||||
fetchListCustomeBranch,
|
||||
fetchListById,
|
||||
fetchById,
|
||||
fetchList,
|
||||
create,
|
||||
editById,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue