add new lights, add login and role to it, add services page
This commit is contained in:
@@ -19,7 +19,9 @@ import routes from './routes';
|
||||
export default defineRouter(function (/* { store, ssrContext } */) {
|
||||
const createHistory = process.env.SERVER
|
||||
? createMemoryHistory
|
||||
: (process.env.VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory);
|
||||
: process.env.VUE_ROUTER_MODE === 'history'
|
||||
? createWebHistory
|
||||
: createWebHashHistory;
|
||||
|
||||
const Router = createRouter({
|
||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||
@@ -30,6 +32,5 @@ export default defineRouter(function (/* { store, ssrContext } */) {
|
||||
// quasar.conf.js -> build -> publicPath
|
||||
history: createHistory(process.env.VUE_ROUTER_BASE),
|
||||
});
|
||||
|
||||
return Router;
|
||||
});
|
||||
|
@@ -6,8 +6,16 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import('layouts/MainLayout.vue'),
|
||||
children: [
|
||||
{ path: '', component: () => import('pages/MainPage.vue') },
|
||||
{ path: '/data', component: () => import('pages/DataPage.vue') },
|
||||
{
|
||||
path: '/data',
|
||||
component: () => import('pages/DataPage.vue'),
|
||||
meta: { requiresAuth: true, requiresAdmin: true },
|
||||
},
|
||||
{ path: '/scenes', component: () => import('components/scenes/ScenesPage.vue') },
|
||||
{
|
||||
path: '/services',
|
||||
component: () => import('pages/ServicesPage.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user