router/index.js页面:

    image.png

    如果要切换到login_pwd页面时,下面的写法跳转的是空白页面

    1. <router-link to='/login_pwd'>
    2. <div class="change tc">
    3. <img src="../../assets/switch.png" alt="" /><span>切换到账号密码登录</span>
    4. </div>
    5. </router-link>

    正确写法如下:

    1. <router-link to='/'>
    2. <div class="change tc">
    3. <img src="../../assets/switch.png" alt="" /><span>切换到账号密码登录</span>
    4. </div>
    5. </router-link>