Added back <router-view></router-view>
This commit is contained in:
parent
19bbe682f7
commit
eaaf665e48
2 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
<template>
|
||||
<router-view></router-view>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col my-3 d-flex justify-content-center">
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ async function GoToDynamicRoute(to, next) {
|
|||
|
||||
let routeData = await getRouteData(to.path).catch((exp) => {
|
||||
console.log(exp);
|
||||
next({ name: "NotFound" });
|
||||
next({ name: "NotFound" }); // Go to 404.
|
||||
});
|
||||
|
||||
// Add our dynamic route.
|
||||
|
|
@ -47,7 +47,7 @@ async function GoToDynamicRoute(to, next) {
|
|||
|
||||
next(to.fullPath);
|
||||
} else {
|
||||
next();
|
||||
next(); // Home (/) and NotFound (/not-found) will always resolve.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue