This commit is contained in:
Jesse-Ma
2023-02-27 14:21:18 +08:00
parent 1f60282ea2
commit ba6cfe1fbf

View File

@@ -133,7 +133,7 @@ const routes = [
}, },
{ path: "/error_:code([0-9]{6})", component: ErrorNote }, { path: "/error_:code([0-9]{6})", component: ErrorNote },
{ {
path: "/:name([a-z0-9]{1,20})", path: "/:name([a-z0-9]{10,20})",
name: "note", name: "note",
component: getNoteView(), component: getNoteView(),
meta: { keyMeta: getKeyMetaParam(), noteMeta: getNoteMetaParam(), errorMeta: getErrorMetaParam() }, meta: { keyMeta: getKeyMetaParam(), noteMeta: getNoteMetaParam(), errorMeta: getErrorMetaParam() },