Compare commits
4
Commits
master
..
6240e2cb49
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6240e2cb49
|
||
|
|
2013cd69c6
|
||
|
|
67bb6a48a6
|
||
|
|
dc84bff603
|
No files matched your search
@@ -6,12 +6,7 @@
|
||||
Visit <a href="https://vuejs.org/" target="_blank" rel="noopener">vuejs.org</a> to read the
|
||||
documentation
|
||||
</p>
|
||||
<nav>
|
||||
<Button><RouterLink to="/">Go to Home</RouterLink></button>
|
||||
<Button><RouterLink to="/test">Go to Test</RouterLink></button>
|
||||
</nav>
|
||||
<Button>Button</Button>
|
||||
<RouterView />
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
+1
-7
@@ -1,14 +1,8 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import TestView from '../views/TestView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{ path: '/', component: HomeView },
|
||||
{ path: '/test', component: TestView },
|
||||
],
|
||||
routes: [],
|
||||
})
|
||||
|
||||
export default router
|
||||
@@ -1,16 +0,0 @@
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "HomeView"
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Home View</h1>
|
||||
<p>
|
||||
Visit <a href="https://vuejs.org/" target="_blank" rel="noopener">vuejs.org</a> to read the
|
||||
documentation
|
||||
</p>
|
||||
<Button>Button</Button>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -1,12 +0,0 @@
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "TestView"
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Test Page</h1>
|
||||
<Button>Test Button</Button>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in new issue
Block a user