Use vue2.0+vue-cli to build a mobile project. After the page is completed, it can be displayed on Google's mobile simulator using http://localhost:8080, but on the mobile terminal it uses 192.168.x.x: 8080 access page, the content is blank. I simplified the APP.vue content and only left a p tag, but it still cannot be displayed. Please help me, I will be very grateful!
<template>
<p id="app">
<p>
11212
</p>
</p>
</template>
<script>
export default {
name: 'app'
}
</script>
<style>
</style>
There is no problem at all on the PC side, but when accessed using 192.168.X.X:8080 on the mobile side,
nothing will be displayed. . .
你不会默认内容进行修改的话,显示肯定是没问题的,后面不知道你动了哪些东西,只看app.vue不够
手机和PC是不是同一个网络啊
应该是网络问题吧,可以让笔记本起个WIFI连上访问以下。
访问的是生产环境还是开发环境,本地是否已经开启服务,局域网内可以访问到本机。同一网段的话,电脑开启服务,手机可以访问的
用uc开发者版调试
访问不到,八成是网段的问题
解决了吗,遇到同样的问题了,已确定不是网络问题,个人感觉好像是vue-router的问题
谢谢上面的各位,,但确实不是网络的问题,公司是台式机开不了wifi只能回去再试了