Does the use of router under vue.js necessarily change url?

ask the above line (introduction catalog work information, which is a simple tag above and content below) if I use vue.js, I think of implementing it in router, but is there any way to change url, without changing url? Because this part of the functionality is only a small part of the entire page, I don"t want to change the url.
this function should be very common. Do you have any open source component names that are more useful? Ask for recommendation


isn't a tab switch done?

is not very clear about your needs. My personal understanding is tab switching

.

the idea is:
1. You can use v-html to switch rendering . The html blocks that need to be loaded can be pre-written in your own code file.

II, or you can achieve the above effect by rendering different Vue components .

3. Use the official slot to throw out the template. Document address: ide/components-slots.html" rel=" nofollow noreferrer "> VUE slot

can achieve the effect you need. It does not change the route and does not fall within the category of vue routing

.

so why do you use router , the tab Tabs tab in element-ui can be done


router is suitable for page jump, which is not suitable here.
make a tab switch:
data:active:0,
@ click (index) {this.active=index},
vMurthis.activeindex indexation,


suggest that element-ui, use mint-ui if it is mobile

Menu