• 此项目
    • 正在载入...
  • 登录

朱兆平 / vue_cli · 文件

转到一个项目

GitLab

  • 转到仪表盘
  • 项目
  • 活动
  • 文件
  • 提交
  • 管道 0
  • 构建 0
  • 图表
  • 里程碑
  • 问题 0
  • 合并请求 0
  • 成员
  • 标记
  • 维基
  • 派生
  • 网络
  • 创建新的问题
  • vue_cli
  • src
  • vuex
  • actions.js
  • 用vuex接管用户信息的存取
    cc2a265e
    朱兆平 在
    2022-03-22 16:20:53 +0800
    提交 浏览文件
actions.js 327 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//test
export const increment = ({commit}) => {
    commit('INCREMENT')
}
export const decrement = ({commit}) => {
    commit('DECREMENT')
}

export const setUserMenuStore = ({commit},menuList) => {
    commit('set_user_menu',menuList)
}

export const setUserInfoStore = ({commit},info) => {
    commit('set_user_info',info)
}