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. . .
習慣沉默2017-05-16 13:28:50
If you don’t modify the default content, the display will definitely be fine. I don’t know what you changed later, just looking at app.vue is not enough
阿神2017-05-16 13:28:50
It should be a network problem. You can connect your laptop to WIFI to access the following.
世界只因有你2017-05-16 13:28:50
Whether you are accessing the production environment or the development environment, whether the local service has been enabled, and the local area network can access the machine. If they are on the same network segment, the computer can enable the service and the mobile phone can access it
ringa_lee2017-05-16 13:28:50
Have you solved it? I encountered the same problem. It has been determined that it is not a network problem. I personally feel that it is a problem with vue-router
迷茫2017-05-16 13:28:50
Thank you everyone above, but it’s really not a network problem. The company’s desktop computer can’t turn on wifi, so I have to go back and try again