From b098b5a32298df84ed4763698eeda7a9126ad7c6 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Thu, 20 Oct 2022 01:57:50 +0200 Subject: refactor: use el-menu router configuration directly --- src-vue/src/App.vue | 7 ++----- src-vue/src/main.ts | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src-vue/src') diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue index 45329fc1..fd716364 100644 --- a/src-vue/src/App.vue +++ b/src-vue/src/App.vue @@ -33,10 +33,7 @@ export default { }, close() { appWindow.close() - }, - handleSelect(key: string, keyPath: string[]) { - this.$router.push({path: key}); - } + } } } @@ -46,8 +43,8 @@ export default { diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts index 758fe747..cd1936b2 100644 --- a/src-vue/src/main.ts +++ b/src-vue/src/main.ts @@ -40,7 +40,6 @@ const router = createRouter({ routes, // short for `routes: routes` }); app.use(router); -router.push({path: '/'}); app.mount('#app') -- cgit v1.2.3