params or state not working #1857
Replies: 1 comment
-
state can be found in |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
This code is not working. is there a problem or am i doing it wrong ?
router/ndex.js
userconst router = createRouter({
history: createWebHashHistory(),
routes
});
export default router;
or
<Button label="xx" @clik="$router.push({name: 'user', params: {id: 'xx'}})" />
or
useror
<Button label="user" @clik="$router.push({name: 'user', state: {id: 'xx'}})" />
if i use params it warns that it is removed. If I use state it doesn't warn but it also doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions