Hbuilder真机调试vue项目时出错,麻烦各位老哥帮忙看看。

连接真机后运行了,服务器已经打开了。
控制台打印的结果:

        正在建立手机连接...
        正在同步手机端程序文件...
        828 KB/s (5093 bytes in 0.006s)
        正在启动HBuilder调试基座...
        应用myapp已启动...
         Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
         Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
         Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
         Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
         Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
         Unhandled promise rejection at static/js/0.5d619eee2822097557e1.js:1
阅读 2.6k
1 个回答

已经自行解决,原来是打包后的应用程序的获取后端数据的接口地址应该改成局域网的ip

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题