Refactor form component and add Ulp store
This commit is contained in:
16
src/stores/ulp.ts
Normal file
16
src/stores/ulp.ts
Normal 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,
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user