Access to XMLHttpRequest at 'http://192.168.188.63:5005/api/getMenuListByRoleId' from origin 'http://192.168.188.63:3002' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
拷贝老的Vue项目框架,搭建新的项目报错。没有去登录页面直接访问服务端API,获取权限。
去清除登录缓存即可!!!
post({ url: ExportGroup, data: () => { &n……
Vue页面打开报错:Uncaught (in promise) TypeError: loader is not a function
找了好久也没找到原因
最后发现是Vue的路由配置路径和页面大小写字母不一致导致的。