diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-10-20 01:57:50 +0200 |
---|---|---|
committer | Remy Raes <raes.remy@gmail.com> | 2022-10-20 01:57:50 +0200 |
commit | b098b5a32298df84ed4763698eeda7a9126ad7c6 (patch) | |
tree | 913cf68384a9fcdd6a39f74f98bae8814e88793c /src-vue/src | |
parent | 728a6b7ebc01096fb5c0ec34fc6ada14c622164a (diff) | |
download | FlightCore-b098b5a32298df84ed4763698eeda7a9126ad7c6.tar.gz FlightCore-b098b5a32298df84ed4763698eeda7a9126ad7c6.zip |
refactor: use el-menu router configuration directly
Diffstat (limited to 'src-vue/src')
-rw-r--r-- | src-vue/src/App.vue | 7 | ||||
-rw-r--r-- | src-vue/src/main.ts | 1 |
2 files changed, 2 insertions, 6 deletions
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}); - } + } } } </script> @@ -46,8 +43,8 @@ export default { <el-menu default-active="/" + router mode="horizontal" - @select="handleSelect" id="fc__menu_bar" class="el-menu-demo el-tabs__nav-scroll" > 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') |