Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Dynamically load dashboard component
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Willems committed Mar 22, 2020
1 parent 7b71235 commit d84f952
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home.vue';
import Dashboard from '../views/Dashboard.vue';
import MyTasks from '../views/MyTasks.vue';
import AllTasks from '../views/AllTasks.vue';
import EditTask from '../views/EditTask.vue';
Expand All @@ -17,7 +16,7 @@ const routes = [
{
path: '/dashboard',
name: 'Dashboard',
component: Dashboard,
component: () => import(/* webpackChunkName: "dashboard" */ '../views/Dashboard.vue'),
children: [
{
path: '',
Expand Down

0 comments on commit d84f952

Please sign in to comment.