26 lines
380 B
TypeScript
26 lines
380 B
TypeScript
import { defineStore } from 'pinia';
|
|
|
|
export const useFlowEditorStore = defineStore('flowEditor', {
|
|
state: () => ({
|
|
counter: 0,
|
|
flowNames: [],
|
|
flowNames1: ''
|
|
}),
|
|
|
|
getters: {
|
|
doubleCount(state) {
|
|
return state.counter * 2;
|
|
}
|
|
},
|
|
|
|
actions: {
|
|
increment() {
|
|
this.counter++;
|
|
},
|
|
|
|
setDefaultFlow() {
|
|
this.counter++
|
|
}
|
|
}
|
|
});
|