filter & storage
This commit is contained in:
16
src/stores/up3.ts
Normal file
16
src/stores/up3.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useUp3Store = defineStore('up3', () => {
|
||||
const up3 = ref()
|
||||
const setData = (value: number) => {
|
||||
up3.value = value
|
||||
}
|
||||
const getData = () => {
|
||||
return up3.value
|
||||
}
|
||||
return {
|
||||
setData,
|
||||
getData,
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user