viewweiwu / vue-tabs-chrome

chrome tab like.
https://viewweiwu.github.io/vue-tabs-chrome/
231 stars 49 forks source link

add routing #65

Closed manimovassagh closed 2 years ago

manimovassagh commented 2 years ago

Hello, it is not an isssue . I want to know how can i add routing to new tabs? is it possible to add routing to these new tabs?

viewweiwu commented 2 years ago

You need to synchronize the relationship between Routing and Tab yourself.

for example: https://codesandbox.io/s/twilight-forest-mm55be?file=/src/App.vue

manimovassagh commented 2 years ago

That is perfect really really Thanks . i tried to put add button inside that but it is not working together. can you please do me a favour and add one add button on the above Sandbox . it will be very helpfull for me . again thanks for the answer 👍

viewweiwu commented 2 years ago

@manimovassagh like this? https://codesandbox.io/s/twilight-forest-mm55be?file=/src/App.vue

manimovassagh commented 2 years ago

You are awsome , exactly like that .the user click on plus and make a new tab with the same route that stands in. for example user is in about page and click addtab and add couple of other about pages. and when click of each tab route to it. for now when i try to add new tab with the same route that i stands in i become the following error. I just wanted to thank you very much. lot of thanks from Mainz Germany 👍👍👍👌👌 Duplictae

viewweiwu commented 2 years ago

This problem has been fixed. https://codesandbox.io/s/twilight-forest-mm55be?file=/src/App.vue

image
manimovassagh commented 2 years ago

Thanks a lot