mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 23:06:14 -04:00
feat: search bar
This commit is contained in:
parent
d9f6c55a79
commit
716cfb69e3
4 changed files with 75 additions and 11 deletions
|
@ -9,11 +9,7 @@ import FileToBase64 from "./routes/tools/FileToBase64";
|
|||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
component: Home
|
||||
},
|
||||
const toolsRoutes = [
|
||||
{
|
||||
path: '/token-generator',
|
||||
component: TokenGenerator
|
||||
|
@ -33,6 +29,14 @@ const routes = [
|
|||
{
|
||||
path: '/file-to-base64',
|
||||
component: FileToBase64
|
||||
}
|
||||
]
|
||||
|
||||
const routes = [
|
||||
...toolsRoutes,
|
||||
{
|
||||
path: '/',
|
||||
component: Home
|
||||
},
|
||||
{
|
||||
path: '/about',
|
||||
|
@ -45,6 +49,10 @@ const router = new VueRouter({
|
|||
mode: 'history',
|
||||
base: process.env.BASE_URL,
|
||||
routes
|
||||
})
|
||||
});
|
||||
|
||||
export default router
|
||||
export default router;
|
||||
export {
|
||||
routes,
|
||||
toolsRoutes
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue