Refactor form component and add Ulp store

This commit is contained in:
probdg
2024-02-06 21:09:01 +07:00
parent da031094fb
commit ab0b910f7c
2 changed files with 49 additions and 11 deletions

16
src/stores/ulp.ts Normal file
View File

@ -0,0 +1,16 @@
import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useUlpStore = defineStore('ulp', () => {
const ulp = ref()
const setData = (value: number) => {
ulp.value = value
}
const getData = () => {
return ulp.value
}
return {
setData,
getData,
}
})