Add support for custom base URL - resolve #114

This commit is contained in:
Bubka
2023-01-20 17:36:15 +01:00
parent 17137b9885
commit 8f6bf85fa8
7 changed files with 20 additions and 6 deletions

View File

@ -31,6 +31,7 @@ import About from './views/About'
const router = new Router({
mode: 'history',
base: window.appConfig.subdirectory ? window.appConfig.subdirectory : '/',
routes: [
{ path: '/start', name: 'start', component: Start, meta: { requiresAuth: true }, props: true },
{ path: '/capture', name: 'capture', component: Capture, meta: { requiresAuth: true }, props: true },