feat: option from json
This commit is contained in:
parent
12a5f618bb
commit
cb01378114
9 changed files with 1271 additions and 626 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue