城阳工作端公众号前端代码
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.

20 lines
275 B

1 year ago
const state = {
userName: ''
}
const mutations = {
SET_USER_NAME(state, name) {
state.userName = name
}
}
const actions = {
// 设置name
setUserName({ commit }, name) {
commit('SET_USER_NAME', name)
}
}
export default {
state,
mutations,
actions
}