apkt-eis/src/stores/date.ts
2024-02-19 09:08:50 +07:00

16 lines
369 B
TypeScript
Executable File

import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useDateStore = defineStore('date', () => {
const dateValue = ref('')
const setDateValue = (value: string) => {
dateValue.value = value
}
const getDateValue = () => {
return dateValue.value;
}
return {
setDateValue,
getDateValue,
}
})