From 39db7afe31f845e3cc1a8c32a5216e672ba3c955 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Thu, 20 Oct 2022 01:17:41 +0200 Subject: fix: all routes must give a Future --- src-vue/src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src-vue/src') diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts index bbc99952..758fe747 100644 --- a/src-vue/src/main.ts +++ b/src-vue/src/main.ts @@ -30,10 +30,10 @@ app.use( store, '$store' ); // routes const routes = [ - { path: '/', name: 'Main', component: () => PlayView}, - { path: '/changelog', name: 'Changelog', component: () => ChangelogView}, - { path: '/settings', name: 'Settings', component: () => SettingsView}, - { path: '/dev', name: 'Dev', component: () => DeveloperView} + { path: '/', name: 'Main', component: async () => PlayView}, + { path: '/changelog', name: 'Changelog', component: async () => ChangelogView}, + { path: '/settings', name: 'Settings', component: async () => SettingsView}, + { path: '/dev', name: 'Dev', component: async () => DeveloperView} ]; const router = createRouter({ history: createWebHashHistory(), -- cgit v1.2.3