From e65c8fb18320229597c458edc0c01e6321b801ff Mon Sep 17 00:00:00 2001 From: w_lierxing <15510223171@163.com> Date: Sat, 22 Jan 2022 00:04:44 +0800 Subject: [PATCH 1/2] useing_el_menu --- src/views/dashboard/index.vue | 61 ++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 33e5ab6ecf..33ab6b3dbc 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,6 +1,23 @@ @@ -9,10 +26,20 @@ import { mapGetters } from 'vuex' export default { name: 'Dashboard', + data() { + return { + activeIndex: '1' + } + }, computed: { ...mapGetters([ 'name' ]) + }, + methods: { + handleSelect(key, keyPath) { + console.log(key, keyPath) + } } } @@ -28,3 +55,35 @@ export default { } } + From 4a2300f7e33cc34bd485750aea687a3e97757f6e Mon Sep 17 00:00:00 2001 From: w_lierxing <15510223171@163.com> Date: Tue, 25 Jan 2022 12:08:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?useing=5Fel=5Fmenu=E5=8E=BB=E6=8E=89hide-ti?= =?UTF-8?q?meout=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/index.vue | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 33ab6b3dbc..25aba1dd9b 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,14 +1,16 @@