added login logic
This commit is contained in:
12
src/stores/employees.ts
Normal file
12
src/stores/employees.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import emplJSON from '../sample-data/employees.json'
|
||||
|
||||
export const useEmployees = defineStore('employees', {
|
||||
state: () => {
|
||||
return {
|
||||
/** @type {{id: number, name: string, handle: string, contractHours: number }[]} */
|
||||
employees: emplJSON
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user