Some history handling

This commit is contained in:
Johannes Zellner
2023-02-26 15:00:16 +01:00
parent c87e0b16f1
commit d7c3a6cec9
3 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -14,14 +14,14 @@ import Login from './views/Login.vue';
import Home from './views/Home.vue';
const routes = [
{ path: '/home', component: Home },
{ path: '/home/:appId?/:currentPath*', component: Home },
{ path: '/login', component: Login },
];
const router = createRouter({
// 4. Provide the history implementation to use. We are using the hash history for simplicity here.
history: createWebHashHistory(),
routes, // short for `routes: routes`
routes,
});
const app = createApp(App);