From 53e26b484bc4ef07bd7dcb189cbc2c4dcb0840ed Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Sun, 24 May 2020 00:05:15 +0530 Subject: [PATCH] primate: enable dynamic routes on API discovery This would load Primate before API discovery finishes with some most commonly available routes and make it seem Primate loads faster. After login APIs are cached and further refreshes or opening views in another tab would be super quick and won't require API discovery until session expiry. Fixes #332 Signed-off-by: Rohit Yadav --- ui/src/components/page/GlobalLayout.vue | 5 +++-- ui/src/config/router.js | 10 +++++----- ui/src/permission.js | 4 ++-- ui/src/store/modules/permission.js | 2 +- ui/src/store/modules/user.js | 25 +++++++++++++++++++++++-- ui/src/views/dashboard/Dashboard.vue | 2 +- 6 files changed, 35 insertions(+), 13 deletions(-) diff --git a/ui/src/components/page/GlobalLayout.vue b/ui/src/components/page/GlobalLayout.vue index a37e0a55901..0ddf934b868 100644 --- a/ui/src/components/page/GlobalLayout.vue +++ b/ui/src/components/page/GlobalLayout.vue @@ -44,7 +44,6 @@ :collapsed="collapsed" :collapsible="true"> -