import { constantRoutes } from '@/router'

export default {
    namespaced: true,
    state: {
        menuList: [...constantRoutes],
    },
    mutations: {
        updateMenuList(state, menuList) {
            state.menuList = [...constantRoutes, ...menuList]//合并静态路由菜单和动态路由菜单
        }
    },
}