diff --git a/src/web/app/desktop/script.ts b/src/web/app/desktop/script.ts index 251a2a1619..cf725d27c6 100644 --- a/src/web/app/desktop/script.ts +++ b/src/web/app/desktop/script.ts @@ -18,6 +18,8 @@ import post from './api/post'; import MkIndex from './views/pages/index.vue'; import MkUser from './views/pages/user/user.vue'; +import MkSelectDrive from './views/pages/selectdrive.vue'; +import MkDrive from './views/pages/drive.vue'; /** * init @@ -58,6 +60,12 @@ init(async (launch) => { app.$router.addRoutes([{ path: '/', component: MkIndex + }, { + path: '/i/drive', component: MkDrive + }, { + path: '/i/drive/folder/:folder', component: MkDrive + }, { + path: '/selectdrive', component: MkSelectDrive }, { path: '/:user', component: MkUser }]); diff --git a/src/web/app/desktop/views/components/drive-window.vue b/src/web/app/desktop/views/components/drive-window.vue index 9fd5df8307..8ae48cf39f 100644 --- a/src/web/app/desktop/views/components/drive-window.vue +++ b/src/web/app/desktop/views/components/drive-window.vue @@ -1,5 +1,5 @@