Добавил пациента в store

This commit is contained in:
dderbentsov
2022-12-24 17:12:55 +03:00
parent 1d8eb0a294
commit 7c44bab78e
3 changed files with 23 additions and 7 deletions

View File

@@ -1,8 +1,15 @@
import { createStore } from "vuex";
export default createStore({
state: {},
mutations: {},
state: {
currentPatient: {},
test: "Привет",
},
mutations: {
setCurrentPatient(state, patient) {
state.currentPatient = patient;
},
},
actions: {},
modules: {},
});