[+] Add blog view
This commit is contained in:
+12
-6
@@ -29,18 +29,24 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
meta: {title: 'Life'},
|
meta: {title: 'Life'},
|
||||||
component: () => import('../views/Life.vue')
|
component: () => import('../views/Life.vue')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/projects',
|
||||||
|
name: 'Projects',
|
||||||
|
meta: {title: 'Projects'},
|
||||||
|
component: () => import('../views/Projects.vue')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/blog',
|
||||||
|
name: 'Blog',
|
||||||
|
meta: {title: '记事本'},
|
||||||
|
component: () => import('../views/Blog.vue')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/color',
|
path: '/color',
|
||||||
name: 'ColorPicker',
|
name: 'ColorPicker',
|
||||||
meta: {title: 'Color Picker'},
|
meta: {title: 'Color Picker'},
|
||||||
component: () => import('../components/color/ColorPickerTest.vue')
|
component: () => import('../components/color/ColorPickerTest.vue')
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/projects',
|
|
||||||
name: 'Projects',
|
|
||||||
meta: {title: 'Projects'},
|
|
||||||
component: () => import('../views/Projects.vue')
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
|
|
||||||
export const router = createRouter({
|
export const router = createRouter({
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<div id="Blog">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import {Options, Vue} from 'vue-class-component';
|
||||||
|
|
||||||
|
@Options({components: {}})
|
||||||
|
export default class Blog extends Vue
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="sass" scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user