From c1a86e9ae03d6bf77abbfeefcc51769735a870b1 Mon Sep 17 00:00:00 2001
From: Minz
Date: Tue, 23 Sep 2025 16:14:17 +0200
Subject: [PATCH] Add router setup
---
src/App.vue | 5 +++++
src/router/index.ts | 8 +++++++-
src/views/HomeView.vue | 16 ++++++++++++++++
src/views/TestView.vue | 12 ++++++++++++
4 files changed, 40 insertions(+), 1 deletion(-)
create mode 100644 src/views/HomeView.vue
create mode 100644 src/views/TestView.vue
diff --git a/src/App.vue b/src/App.vue
index 549aea4..af9cdae 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -6,7 +6,12 @@
Visit vuejs.org to read the
documentation
+
+
diff --git a/src/router/index.ts b/src/router/index.ts
index e1eab52..c9efe7f 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,8 +1,14 @@
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: [],
+ routes: [
+ { path: '/', component: HomeView },
+ { path: '/test', component: TestView },
+ ],
})
export default router
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
new file mode 100644
index 0000000..dab6fd8
--- /dev/null
+++ b/src/views/HomeView.vue
@@ -0,0 +1,16 @@
+
+
+
+ Home View
+
+ Visit vuejs.org to read the
+ documentation
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/TestView.vue b/src/views/TestView.vue
new file mode 100644
index 0000000..394ecd0
--- /dev/null
+++ b/src/views/TestView.vue
@@ -0,0 +1,12 @@
+
+
+
+ Test Page
+
+
+
+
\ No newline at end of file