Y_Shmily

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

01 2022 档案

VUE外链内链判断跳转
摘要:使用路由守卫进行拦截跳转 方便好使,代码如下 router.beforeEach((to, from, next) => { // 路由守卫 if (/www./g.test(to.path)) { window.open("http://" + to.path.slice(to.path.inde 阅读全文

posted @ 2022-01-07 15:13 Y_Shmily 阅读(665) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示