xyyd-fatfox/src/widgets/work/useTomatoStore.ts

21 lines
438 B
TypeScript
Raw Normal View History

2024-11-01 18:36:07 +08:00
import { defineStore } from "pinia";
import { reactive, ref } from "vue";
export type TomatoTarget = {
id: string;
finishTime: number;
remindTime: number | null;
title: string;
}
export default defineStore("work", () => {
const state = reactive({
list: [] as TomatoTarget[],
})
const openShowModel = ref<undefined | null | TomatoTarget>()
return {
state,
openShowModel
}
})