generated from Seekra/repository-template
Add NotFound.vue #48 #50
+7
-6
@@ -17,18 +17,19 @@ limitations under the License.
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
import SearchView from '../views/SearchView.vue'
|
||||
import NotFound from '../views/NotFound.vue'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'search',
|
||||
component: SearchView
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'not-found',
|
||||
component: NotFound
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user