Some history handling
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user