4 changed files with 56 additions and 50 deletions
@ -1,32 +1,32 @@ |
|||||
import { createRouter, createWebHashHistory } from 'vue-router' |
import { createRouter, createWebHashHistory } from "vue-router"; |
||||
import Home from '../views/Home.vue' |
import Home from "../views/Home.vue"; |
||||
import Policy from '../views/policy/index.vue' |
import Policy from "../views/policy/index.vue"; |
||||
import Showings from '../views/showings/index.vue' |
import Showings from "../views/showings/index.vue"; |
||||
import HouseDetail from '../views/showings/houseDetail.vue' |
import HouseDetail from "../views/showings/houseDetail.vue"; |
||||
const router = createRouter({ |
const router = createRouter({ |
||||
history: createWebHashHistory(import.meta.env.BASE_URL), |
history: createWebHashHistory(import.meta.env.BASE_URL), |
||||
routes: [ |
routes: [ |
||||
{ |
{ |
||||
path: '/', |
path: "/home", |
||||
name: 'home', |
name: "home", |
||||
component: Home |
component: Home, |
||||
}, |
}, |
||||
{ |
{ |
||||
path: '/Showings', |
path: "/Showings", |
||||
name: 'Showings', |
name: "Showings", |
||||
component: Showings |
component: Showings, |
||||
}, |
}, |
||||
{ |
{ |
||||
path: '/Policy', |
path: "/", |
||||
name: 'Policy', |
name: "Policy", |
||||
component: Policy |
component: Policy, |
||||
}, |
}, |
||||
{ |
{ |
||||
path: '/HouseDetail', |
path: "/HouseDetail", |
||||
name: 'HouseDetail', |
name: "HouseDetail", |
||||
component: HouseDetail |
component: HouseDetail, |
||||
}, |
}, |
||||
] |
], |
||||
}) |
}); |
||||
|
|
||||
export default router |
export default router; |
||||
|
Loading…
Reference in new issue