-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(router): page files paths architecture
Took 11 minutes
- Loading branch information
Showing
4 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<template> | ||
<p>Company page content</p> | ||
</template>; | ||
<script lang="ts" setup> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
import { createRouter, createWebHistory } from "vue-router"; | ||
|
||
import HomePage from "./pages/HomePage.vue"; | ||
import CompanyPage from "./pages/CompanyPage.vue"; | ||
import DesignPage from "./pages/DesignPage.vue"; | ||
import Home from "./pages/Home/index.vue"; | ||
import Company from "./pages/Company/index.vue"; | ||
import Design from "./pages/Design/index.vue"; | ||
|
||
const routes = [ | ||
{ path: "/", component: HomePage }, | ||
{ path: "/company", component: CompanyPage }, | ||
{ path: "/design", component: DesignPage }, | ||
{ | ||
path: "/", | ||
component: Home | ||
}, | ||
{ | ||
path: "/company", | ||
component: Company | ||
}, | ||
{ | ||
path: "/design", | ||
component: Design | ||
} | ||
]; | ||
|
||
export const router = createRouter({ | ||
history: createWebHistory(), | ||
routes, | ||
routes | ||
}); |