获取前一个页面的路由 #9166
Unanswered
zhouyashu279
asked this question in
Q&A
获取前一个页面的路由
#9166
Replies: 2 comments
-
umi文档上 没找到解决方案 |
Beta Was this translation helpful? Give feedback.
0 replies
-
const urlParams = new URL(window.location.href);
const pathname = urlParams?.pathname;
console.log("pathname:", pathname); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
能否获取到前一个页面的路由地址
Beta Was this translation helpful? Give feedback.
All reactions