From 10d6a95e3cfc3817d85b7c81990eb45cc68286b8 Mon Sep 17 00:00:00 2001 From: Aicirou <2643053021@qq.com> Date: Mon, 22 Jun 2020 20:17:33 +0800 Subject: [PATCH] Fix more than 10 drive not working #59 #85 --- src/router/routes.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/router/routes.js b/src/router/routes.js index a63c290..eea615f 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -7,7 +7,7 @@ const meta = { } const frameIn = [{ - path: "/:id(\\d)::cmd(text)/:path", + path: "/:id(\\d+)::cmd(text)/:path", component: _import("page/GoText"), meta: { ...meta, @@ -15,7 +15,7 @@ const frameIn = [{ } }, { - path: "/:id(\\d)::cmd(pdf)/:path", + path: "/:id(\\d+)::cmd(pdf)/:path", component: _import("page/GoPdf"), meta: { ...meta, @@ -23,7 +23,7 @@ const frameIn = [{ } }, { - path: "/:id(\\d)::cmd(video)/:path", + path: "/:id(\\d+)::cmd(video)/:path", component: _import("page/GoVideo"), meta: { ...meta, @@ -31,7 +31,7 @@ const frameIn = [{ } }, { - path: "/:id(\\d)::cmd(image)/:path", + path: "/:id(\\d+)::cmd(image)/:path", component: _import("page/GoImg"), meta: { ...meta, @@ -39,7 +39,7 @@ const frameIn = [{ } }, { - path: "/:id(\\d)::cmd(search)(/?q=)*", + path: "/:id(\\d+)::cmd(search)(/?q=)*", component: _import("page/GoList"), meta: { ...meta, @@ -47,7 +47,7 @@ const frameIn = [{ } }, { - path: "/:id(\\d):/:path*", + path: "/:id(\\d+):/:path*", component: _import("page/GoList"), meta: { ...meta,