From 05f28fecb22c83dfef8cf39be675a13c058ec34d Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Thu, 30 Sep 2021 00:16:15 +0800 Subject: [PATCH] Build: Use async component for status and settings --- src/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router.js b/src/router.js index 8739aa61d..5c3fda941 100644 --- a/src/router.js +++ b/src/router.js @@ -6,9 +6,9 @@ import DashboardHome from "./pages/DashboardHome.vue"; import Details from "./pages/Details.vue"; import EditMonitor from "./pages/EditMonitor.vue"; import List from "./pages/List.vue"; -import Settings from "./pages/Settings.vue"; +const Settings = () => import("./pages/Settings.vue"); import Setup from "./pages/Setup.vue"; -import StatusPage from "./pages/StatusPage.vue"; +const StatusPage = () => import("./pages/StatusPage.vue"); import Entry from "./pages/Entry.vue"; const routes = [