Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

页面之间的跳转,用什么呐,比如我现在退出系统,跳转到登录页,但是登录页是没有页签的 #19

Open
YoYoLady opened this issue Nov 7, 2019 · 3 comments

Comments

@YoYoLady
Copy link

YoYoLady commented Nov 7, 2019

No description provided.

@noahlam
Copy link
Owner

noahlam commented Nov 11, 2019

你可以在外面再加一层 vue-router,把这整个 multi-tab 当作一个页面。

或者直接 window.location.href = '你注册页地址'。

@1140349909
Copy link

这个到底应该怎么解决呢? 我加了vue-router也不行,登录页面跳转不成功

@noahlam
Copy link
Owner

noahlam commented May 14, 2020

@1140349909 最简单的方法,在 MainFrame.vue 里面用 v-if 控制登陆组件的显示。

<template>
    <div>
        <login v-if=!isLogged/>
        <div v-else class="indexWrap">...</div>
    </div> 
</template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants