From bae30e5cc4dc6072622074fa1e649b9397731e7d Mon Sep 17 00:00:00 2001 From: chongchuanbing Date: Fri, 11 Oct 2024 11:26:59 +0800 Subject: [PATCH] fix: document preview (#2795) (cherry picked from commit 8d11a070b2fc88285a7cff1ab85ebefee84b6c64) ### What problem does this PR solve? fix document preview error in file manager. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: chongchuanbing --- web/src/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/routes.ts b/web/src/routes.ts index 607fa7c96..eb1ed77b3 100644 --- a/web/src/routes.ts +++ b/web/src/routes.ts @@ -98,7 +98,7 @@ const routes = [ ], }, { - path: 'document/:id', + path: '/document/:id', component: '@/pages/document-viewer', layout: false, },