aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/App.vue
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-10-20 01:57:50 +0200
committerRemy Raes <raes.remy@gmail.com>2022-10-20 01:57:50 +0200
commitb098b5a32298df84ed4763698eeda7a9126ad7c6 (patch)
tree913cf68384a9fcdd6a39f74f98bae8814e88793c /src-vue/src/App.vue
parent728a6b7ebc01096fb5c0ec34fc6ada14c622164a (diff)
downloadFlightCore-b098b5a32298df84ed4763698eeda7a9126ad7c6.tar.gz
FlightCore-b098b5a32298df84ed4763698eeda7a9126ad7c6.zip
refactor: use el-menu router configuration directly
Diffstat (limited to 'src-vue/src/App.vue')
-rw-r--r--src-vue/src/App.vue7
1 files changed, 2 insertions, 5 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"
>