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