parent
c92d5bf5f2
commit
987ac4d02c
22
src/main.js
22
src/main.js
@ -28,17 +28,17 @@ const Privacy = import('./components/Privacy.vue');
|
|||||||
const Register = import('./components/Register.vue');
|
const Register = import('./components/Register.vue');
|
||||||
const Profile = import('./components/Profile.vue');
|
const Profile = import('./components/Profile.vue');
|
||||||
//
|
//
|
||||||
let routes = [];
|
let routes = [ { path: '/', component: EnvError } ];
|
||||||
if (config.baseurl && config.documentserver_key) {
|
if (typeof config !== 'undefined') {
|
||||||
routes = [
|
if (config.baseurl && config.documentserver_key) {
|
||||||
{ path: '/', component: Home },
|
routes = [
|
||||||
{ path: '/imprint', component: Imprint },
|
{ path: '/', component: Home },
|
||||||
{ path: '/privacy', component: Privacy },
|
{ path: '/imprint', component: Imprint },
|
||||||
{ path: '/register', component: Register },
|
{ path: '/privacy', component: Privacy },
|
||||||
{ path: '/profile', component: Profile }
|
{ path: '/register', component: Register },
|
||||||
];
|
{ path: '/profile', component: Profile }
|
||||||
} else {
|
];
|
||||||
routes = [ { path: '/', component: EnvError } ];
|
}
|
||||||
}
|
}
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user