According to the docs of route object, you have access to a $route object from your components, which exposes what you need. In this case ... <看更多>
Search
Search
According to the docs of route object, you have access to a $route object from your components, which exposes what you need. In this case ... <看更多>
Since there is only a single "logon" where the character id is set, I wanted to assign the character id globally to all routes and API urls. ... <看更多>
const User = { template: '< div>User {{ $route.params.id }}< /div>' }. 在 routes 設定 path ,加上「:」就變成變數。 const routes = [ { path: '/user/:id', ... ... <看更多>