原因:跨域问题Access-Control-Allow-Origin
Access to XMLHttpRequest at ‘http://localhost:8001/user/login’ from origin ‘http://localhost:9528’ has been blocked by CORS policy:Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requestedresource.
解决办法:https://blog.youkuaiyun.com/zxd1435513775/article/details/105645473
把day04里面的vue-admin-1010拿过来,删除config和src文件夹,放day05的config和src文件夹即可