Uncaught (in promise) TypeError: Cannot read property ‘data’ of undefined at register.html : 224
![](https://i-blog.csdnimg.cn/blog_migrate/b246ae6a25219860166bf66b2617bb7b.png)
原因:代码有误
将this.game.print(error.response.data.error);
改为this.game.print(error.response);
接着又报错Uncaught (in promise) TypeError: Cannot read property ‘data’ of undefined at register.html : 203,与上面一样处理
但后面又又报错:
[Vue warn]: Error in v-on handler: “ReferenceError: test is not defined” (found in ) at vue.js : 634
ReferenceError: test is not defined at vue.js : 1897
![](https://i-blog.csdnimg.cn/blog_migrate/1478326970cc5e2380d3fed4fe6a6d8f.png)
提示:
为图中代码错误,把,
改为.
即可,很烦😢
undefined at main.js : 23
为模拟器与虚拟机未连接,因为虚拟机IP改变
我的问题是因为这个,但可能还有更多的原因。