- 在main.js中,window.location.href="/#/login".
- this. r o u t e r . p u s h ( ′ / l o g i n ′ ) 对 比 获 取 当 前 的 路 由 : t h i s . router.push('/login')对比获取当前的路由:this. router.push(′/login′)对比获取当前的路由:this.route.path
vue 中跳转路由的几种方式
最新推荐文章于 2022-08-16 10:44:49 发布