Files
KintoneAppBuilder/frontend/src/stores/flowEditor.ts
2023-09-17 21:44:28 +08:00

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++
}
}
});