I am currently using Vue 2 in my project and have set up the following routes:
const routes = [
{
path: "/suites",
component: Home,
},
{
path: "*",
component: LandingPage,
},
];
Now, I need to include an additional route:
www.mysite.com/?number=xxxxxx
When this specific route is accessed, I want the Home component to be displayed.
I attempted the following syntax:
{
path: {"/suites","?number=xxxxxx"}
component: Home,
}
However, the above approach did not work. Does anyone have any suggestions on how I can properly configure both routes (the "xxxxxx" being a variable number) to open the component?
"?number=xxxxxx"
"/suites"
Your insights are greatly appreciated!