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