Weex+vue-router clicks on the page to jump, but can't display the content?

Let"s ask a question about weex+vue-router. I modify the page according to some blogs on the Internet as shown in the picture. I hope to click second and jump to the second page

second

Second

.

then did not report wrong, really do not know why, Baidu checked does not seem to encounter me such a problem. Beg the boss to answer, thank you.

April 23, 2018.23 update:
the project was restarted today, but it worked. I didn"t make any changes, except that changing H1 to text, doesn"t seem to be a sub-routing question. Thank you for your answers.

the current situation is as follows: after weex+vue-router has configured the route, the Jump rotor page is not displayed, but if you restart the project and click Jump, the sub-page will be displayed. I have tried this question several times, and it is always like this. I don"t know if anyone has encountered it, that is to say, there is no problem with what I wrote, but the project routing must be restarted to take effect. I don"t understand.

There is no H1 tag in

weex. Using
text tag


< router-view > seems to only be used in the home page. I have encountered it before, and there may be other solutions.


first make sure whether second points to your second.vue file in your routing file.


  1. first make sure that second.vue is correctly introduced into your routing settings, as mentioned in the above answer
  2. does not know if your page is an entry file. If is not , you need to use child routes. You can see ( https://blog.csdn.net/k491022.)
  3. .
  4. in addition, weex does not have H1 tag Orz
Menu