started workingon pinia, adding sample data

This commit is contained in:
Sockenklaus
2021-10-05 00:13:41 +02:00
parent c378553d8c
commit 44b2c70327
8 changed files with 2675 additions and 1 deletions

12
src/stores/employees.js Normal file
View 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
}
},
})