This commit is contained in:
2023-04-26 23:17:50 +08:00
parent bf51ba13a3
commit 5f76adf6df
5 changed files with 154 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import HomeView from '../views/HomeView.vue';
import IndexView from '../views/IndexView.vue';
const routes: Array<RouteRecordRaw> = [
{
path: '/',
name: 'home',
component: HomeView,
component: IndexView,
},
{
path: '/about',

View File

@@ -1,5 +1,5 @@
<template>
<div class="about">
<h1>This is an about page</h1>
<h1>This is an about page for Vtsuru.live</h1>
</div>
</template>

9
src/views/IndexView.vue Normal file
View File

@@ -0,0 +1,9 @@
<template>
<n-button>
Hello
</n-button>
</template>
<script lang="ts" setup>
import { NButton } from 'naive-ui'
</script>