Browse Source

Merge branch 'next' of https://github.com/jdf2e/nutui into next

richard1015 5 years ago
parent
commit
988b51e3c8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/sites/doc/router.ts

+ 6 - 0
src/sites/doc/router.ts

@@ -33,6 +33,12 @@ routes.push({
   redirect: () => '/'
 });
 
+routes.push({
+  name: 'NotFound',
+  path: '/:path(.*)+',
+  redirect: () => '/',
+});
+
 const router = createRouter({
   history: createWebHashHistory(),
   routes