diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-10-20 01:17:41 +0200 |
---|---|---|
committer | Remy Raes <raes.remy@gmail.com> | 2022-10-20 01:17:41 +0200 |
commit | 39db7afe31f845e3cc1a8c32a5216e672ba3c955 (patch) | |
tree | 5193b01d97a17f2312ab95ea1460e387c11a9da0 /src-vue/src | |
parent | 8172bbcd9f0cdaf1b1cbb810617740183377b1ea (diff) | |
download | FlightCore-39db7afe31f845e3cc1a8c32a5216e672ba3c955.tar.gz FlightCore-39db7afe31f845e3cc1a8c32a5216e672ba3c955.zip |
fix: all routes must give a Future
Diffstat (limited to 'src-vue/src')
-rw-r--r-- | src-vue/src/main.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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(), |