router.back()之类的方法是否可以提供传参,就像使用push传参一样。 #2431
-
|
因为页面上可能会有这样的需求,我在跳转到下一个页面时,当前页面的表单可能填写了内容,然后我要进入下一个页面,当再次回到这个页面时,我希望填写的内容还在,同时该页面根据传递的参数需要执行一些方法。如果返回的时候继续调用push,则会使原本的这个页面进入更深度的路由栈。 |
Beta Was this translation helpful? Give feedback.
Answered by
l246804
May 30, 2025
Replies: 1 comment 1 reply
-
+1 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



我这边用
router.options.history.state处理的。