浏览代码

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

richard1015 5 年之前
父节点
当前提交
988b51e3c8
共有 1 个文件被更改,包括 6 次插入0 次删除
  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