feat(router): 使用 vue-router

This commit is contained in:
BTMuli
2023-03-05 17:00:45 +08:00
parent a47e0c92c4
commit c42ca01fa7
7 changed files with 75 additions and 2 deletions

13
src/pages/Config.vue Normal file
View File

@@ -0,0 +1,13 @@
<template>
<h1>设置页面</h1>
</template>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
name: "Config",
});
</script>
<style lang="css"></style>

13
src/pages/Home.vue Normal file
View File

@@ -0,0 +1,13 @@
<template>
<h1>首页</h1>
</template>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
name: "Home",
});
</script>
<style lang="css"></style>