You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
286 B
12 lines
286 B
import { defineStore } from 'pinia'
|
|
// 这个也是不知道有啥用,谁给在index.vue里注了
|
|
export const useAreaStore = defineStore('area', {
|
|
state: () => ({
|
|
currentArea: '全部',
|
|
}),
|
|
actions: {
|
|
updateArea(newVal) {
|
|
this.currentArea = newVal
|
|
},
|
|
},
|
|
})
|