84669 人學習
152542 人學習
20005 人學習
5487 人學習
7821 人學習
359900 人學習
3350 人學習
180660 人學習
48569 人學習
18603 人學習
40936 人學習
1549 人學習
1183 人學習
32909 人學習
頁面路由配置了兩個
{ path: 'index', name: 'introduce', component: page.introduce, }, { path: 'detail', name: 'detail', component: page.detail, }
由先由index跳到detail, detail再跳轉其他地址如百度或什麼的,再點擊微信端的返回,如何直接返回到第一個頁面?
跳到百度之後就不歸你管了.可以在你的路由或元件裡面判斷document.referrer是不是為其他網址.是的話回傳第一個頁.
window.location.replace()
這個.$router.replace()
跳到百度之後就不歸你管了.
可以在你的路由或元件裡面判斷document.referrer是不是為其他網址.是的話回傳第一個頁.
window.location.replace()
這個.$router.replace()