15 lines
277 B
JavaScript
15 lines
277 B
JavaScript
// store/index.js
|
|
export const state = () => ({
|
|
list: [],
|
|
info: {},
|
|
})
|
|
|
|
export const mutations = {
|
|
// updateList(state, data) {
|
|
// state.list = data
|
|
// },
|
|
updateInfo(state, data) {
|
|
// console.log("state",);
|
|
state.info = data
|
|
},
|
|
} |