File tree Expand file tree Collapse file tree 4 files changed +5
-18
lines changed Expand file tree Collapse file tree 4 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" hello" >
3
- <h1 >{{ msg }}</ h1 >
3
+ <p >About Page</ p >
4
4
<i data-feather =" home" ></i >
5
5
</div >
6
6
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" hello" >
3
- <h1 >{{ msg }}</ h1 >
3
+ <p >Home Page</ p >
4
4
<i data-feather =" home" ></i >
5
5
</div >
6
6
</template >
Original file line number Diff line number Diff line change 1
1
import { createApp } from 'vue'
2
- import { createWebHistory , createRouter } from 'vue-router'
3
2
import App from './App.vue'
4
- import './assets/css/tailwind.css'
5
- import Home from './components/Home'
6
- import About from './components/About'
7
3
import router from './router'
4
+ import './assets/css/tailwind.css'
8
5
9
6
const feather = require ( 'feather-icons' )
10
7
feather . replace ( )
11
8
12
- const routes = [
13
- { path : '/' , component : Home } ,
14
- { path : '/about' , component : About } ,
15
- ] ;
16
-
17
- const router = createRouter ( {
18
- history : createWebHistory ( ) ,
19
- routes
20
- } ) ;
21
-
22
9
createApp ( App ) . use ( router ) . use ( router ) . mount ( '#app' )
Original file line number Diff line number Diff line change 1
1
import { createRouter , createWebHistory } from 'vue-router'
2
- import Home from '../views /Home.vue'
2
+ import Home from '../components /Home.vue'
3
3
4
4
const routes = [
5
5
{
@@ -13,7 +13,7 @@ const routes = [
13
13
// route level code-splitting
14
14
// this generates a separate chunk (about.[hash].js) for this route
15
15
// which is lazy-loaded when the route is visited.
16
- component : ( ) => import ( /* webpackChunkName: "about" */ '../views /About.vue' )
16
+ component : ( ) => import ( /* webpackChunkName: "about" */ '../components /About.vue' )
17
17
}
18
18
]
19
19
You can’t perform that action at this time.
0 commit comments