add(主页,路由):添加主页页面和404页面
This commit is contained in:
+6
-1
@@ -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
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user