标签:register from ref org == before htm outer ide
router.beforeEach((to, from, next) => { let username = localStorage.getItem(‘username‘) if (to.name === ‘login‘ || to.name === ‘register‘) next() else if (!username) next({ name: ‘login‘ }) else next() })
标签:register from ref org == before htm outer ide
原文地址:https://www.cnblogs.com/xiaoliziaaa/p/13095926.html