feat: option from json

This commit is contained in:
puriphatt 2024-06-11 12:27:58 +00:00
parent 12a5f618bb
commit cb01378114
9 changed files with 1271 additions and 626 deletions

View file

@ -7,6 +7,9 @@ import axios from 'axios';
const useEmployeeStore = defineStore('api-employee', () => {
const data = ref<Pagination<Employee[]>>();
const globalOption = ref();
const ownerOption = ref<{ label: string; value: string }[]>();
async function fetchList(
opts?: {
page?: number;
@ -136,6 +139,8 @@ const useEmployeeStore = defineStore('api-employee', () => {
return {
data,
globalOption,
ownerOption,
fetchList,
create,