tradeScreen/src/store/index.js

21 lines
348 B
JavaScript
Raw Normal View History

2023-12-08 18:51:02 +08:00
import {
defineStore
} from 'pinia'
export const areaObj = defineStore('counter', {
state: () => ({
2023-12-08 23:00:43 +08:00
userInfo:{},
2023-12-08 18:51:02 +08:00
area: {
2023-12-08 23:00:43 +08:00
// areaCode: 510524,
// streetCode: 51052410
2023-12-08 18:51:02 +08:00
}
}),
getters: {},
actions: {
changeArea(obj) {
this.area = obj
2023-12-08 23:00:43 +08:00
},
2023-12-08 18:51:02 +08:00
}
})