add(主页,路由):添加主页页面和404页面

This commit is contained in:
南浔
2025-07-23 15:41:24 +08:00
parent f232edec5b
commit 6f02b24067
2 changed files with 169 additions and 7 deletions
+6 -1
View File
@@ -3,7 +3,7 @@ import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Login from '@/views/auth/Login.vue'
import Register from '@/views/auth/Register.vue'
import Notfound from '@/views/Notfound.vue'
Vue.use(VueRouter)
const routes = [
@@ -80,6 +80,11 @@ const routes = [
}
},
]
},
{
path: '*',
name: 'NotFound',
component: Notfound
}
]