fix: document preview (#2795)
Browse files(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 <chongchuanbing@gmail.com>
- web/src/routes.ts +1 -1
web/src/routes.ts
CHANGED
@@ -98,7 +98,7 @@ const routes = [
|
|
98 |
],
|
99 |
},
|
100 |
{
|
101 |
-
path: 'document/:id',
|
102 |
component: '@/pages/document-viewer',
|
103 |
layout: false,
|
104 |
},
|
|
|
98 |
],
|
99 |
},
|
100 |
{
|
101 |
+
path: '/document/:id',
|
102 |
component: '@/pages/document-viewer',
|
103 |
layout: false,
|
104 |
},
|