农贤钢
Results
2
comments of
农贤钢
写了一篇[《美团点评大前端日志系统Logan入门指南》](https://www.yuque.com/u115611/androidsample/rlzmi9),可以参考参考。
解决方法: 在LoganSite根目录下创建文件.env.development,并在其中指定API_BASE_URL环境变量改为: API_BASE_URL=http://localhost:8080/logan-web 注意,**这个API_BASE_URL必须是运行Logan Server里控制台打印的URL**。同时.env.development一定要放在LoganSite根目录下,并且检查src/common/api.js里的BASE_URL变量是否指向.env.development配置的变量。 参考[美团点评大前端日志系统Logan入门指南](https://www.yuque.com/u115611/androidsample/rlzmi9#Lli9Q)