From 6b740582b9d87832c0693294ba6833af5f8d4f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Defined=C2=B0?= <1299501433@qq.com> Date: Wed, 28 Sep 2022 21:54:36 +0800 Subject: [PATCH] =?UTF-8?q?404=E9=A1=B5=E9=9D=A2=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E5=BD=93=E5=89=8Durl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index b0df9fb5..1273fcf7 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -196,7 +196,8 @@ export const asyncRoutes: RouteRecordRaw[] = [ name: "404", meta: { title: "404" - } + }, + alias: "/:pathMatch(.*)*" } ] }