parent
c92d5bf5f2
commit
987ac4d02c
@ -28,7 +28,8 @@ 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 (typeof config !== 'undefined') {
|
||||||
if (config.baseurl && config.documentserver_key) {
|
if (config.baseurl && config.documentserver_key) {
|
||||||
routes = [
|
routes = [
|
||||||
{ path: '/', component: Home },
|
{ path: '/', component: Home },
|
||||||
@ -37,8 +38,7 @@ if (config.baseurl && config.documentserver_key) {
|
|||||||
{ path: '/register', component: Register },
|
{ path: '/register', component: Register },
|
||||||
{ path: '/profile', component: Profile }
|
{ 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