diff --git a/src/router/index.js b/src/router/index.js index 43f4eed..45b1db9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -48,14 +48,8 @@ export const constantRoutes = [ }, { path: '/s/:id', - component: Layout, - children: [ - { - path: '', - name: 'share', - component: () => import('@/views/public/share/shareList'), - } - ] + name: 'share', + component: () => import('@/views/public/share/shareList') }, // 404 page must be placed at the end !!! diff --git a/src/views/public/share/shareList.vue b/src/views/public/share/shareList.vue index 4b2bd1e..1969fff 100644 --- a/src/views/public/share/shareList.vue +++ b/src/views/public/share/shareList.vue @@ -1069,7 +1069,7 @@ export default { }) }, pushRouter() { - this.$router.push(`/s/${this.shortId}/?vmode=${this.vmode}`) + this.$router.push(`/s/${this.shortId}?vmode=${this.vmode}`) }, // 点击文件或文件夹 fileClick(row) {