Solved: How to open page in main view? it is opening in left panel

In my app I have 2 views first is main view and another for left-panel.

I have a logout link in left panel

      <f7-list-item @click="logOut()" data-view=".view-main" title="Sign Out" panel-close>

and a method:

        const self = this;

the login page is opening in left panel. What should I do to open it in main-view?
Please help.


OK I got it myself.


will do the work