一、需求: 我需要从后台中获取菜单列表在路由守卫中进行限制。 二、遇到的问题: action中setMenuData的方法如下: actions: { setMenuData(context){ getMenu().then(res => { console.log("在状态管理器中的异步方法执行接口",res)
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有