From 7f6b9e959994421bfd7f00e598fdaf8d463ff58d Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Thu, 2 Jul 2020 09:02:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20the=20problem=20that=20side=20menu=20not?= =?UTF-8?q?=20work=20in=20IE;=20:bug:=20=E4=BF=AE=E5=A4=8D=EF=BC=9AIE=20?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=8B=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E6=AD=A3=E5=B8=B8=E5=B7=A5=E4=BD=9C=E7=9A=84?= =?UTF-8?q?bug;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/menu/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/menu/menu.js b/src/components/menu/menu.js index 7007a71..638493b 100644 --- a/src/components/menu/menu.js +++ b/src/components/menu/menu.js @@ -112,7 +112,7 @@ export default { return h( Item, {key: menu.fullPath}, [ - h('a', {attrs: {href: '#' + menu.fullPath}}, + h('router-link', {props: {to: menu.fullPath}}, [ this.renderIcon(h, menu.meta ? menu.meta.icon : 'none'), h('span', [this.$t(menu.fullPath.substring(1).replace(new RegExp('/', 'g'), '.') + '.name')])