diff options
Diffstat (limited to 'web/html/component/aSidebar.html')
| -rw-r--r-- | web/html/component/aSidebar.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/html/component/aSidebar.html b/web/html/component/aSidebar.html index b69c8f3f..9c89a96d 100644 --- a/web/html/component/aSidebar.html +++ b/web/html/component/aSidebar.html @@ -43,8 +43,7 @@ Vue.component('a-sidebar', { data() { return { - tabs: [ - { + tabs: [{ key: '{{ .base_path }}panel/', icon: 'dashboard', title: '{{ i18n "menu.dashboard"}}' @@ -79,8 +78,8 @@ }, methods: { openLink(key) { - return key.startsWith('http') ? - window.open(key) : + return key.startsWith('http') ? + window.open(key) : location.href = key }, closeDrawer() { |
