search

Home  >  Q&A  >  body text

javascript - A mobile project was built using vue2.0+vue-cli. After the page is completed, it can be displayed on the PC, but when the page is accessed on the mobile terminal, the content is blank.

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. . .

PHPzPHPz2752 days ago1357

reply all(8)I'll reply

  • 習慣沉默

    習慣沉默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

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:28:50

    Are the mobile phone and PC on the same network?

    reply
    0
  • 阿神

    阿神2017-05-16 13:28:50

    It should be a network problem. You can connect your laptop to WIFI to access the following.

    reply
    0
  • 世界只因有你

    世界只因有你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

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-16 13:28:50

    Debug with uc developer version

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-16 13:28:50

    Can’t access, 80% of the time it’s a network segment problem

    reply
    0
  • ringa_lee

    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

    reply
    0
  • 迷茫

    迷茫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

    reply
    0
  • Cancelreply