/** * 菜单列表 */ export const state=()=>({ menus:['document', 'note', 'center'] }) export const mutations = { //默认不包含阅读论文菜单 none(state){ state.menus=['document', 'note', 'center'] }, //包含阅读论文菜单 read(state){ state.menus=['document', 'note', 'center','read'] } }