framework7io / framework7-vue

Deprecated! Build full featured iOS & Android apps using Framework7 & Vue
http://framework7.io/vue/
MIT License
674 stars 151 forks source link

Can't change the page #405

Closed tomaszek92 closed 6 years ago

tomaszek92 commented 6 years ago

This is a (multiple allowed):

What you did

I am trying to change the displaying page after the successful login, but I can't change the actual page. login.vue: https://gist.github.com/tomaszek92/d1fd8985491ba073c2f097db763137a5 routes.js: https://gist.github.com/tomaszek92/4759a4ea6fe6c8e06d68413cb587cb01

Expected Behavior

Change the displaying page.

Actual Behavior

Can't change the displaying page, throws an error: przechwytywanie Also, I tried with navigate method, but it does nothing (no error, no change the page).

nolimits4web commented 6 years ago

It should be this.$f7Router.navigate('/home/');

nolimits4web commented 6 years ago

And your login.vue must contain only f7-page element as a root element. No f7-view should be there

tomaszek92 commented 6 years ago

Great, it works. Thank you.