/** * 用户登录组件 */ const user = { state: { menus: [ { icon: "sound", index: "/index", title: "视频管理", subs: [ { icon: "area-chart", index: "index", title: "Dashboard", }, ], }, { icon: "setting", index: "/wechat", title: "系统", subs: [ { icon: "setting", index: "admin_user", title: "帐号管理", }, ], } ] }, mutations: { SET_MENUS: (state, action) => { // state.menus = !state.isCollapse }, } } export default user;