From 4339504db2a024e6b0d3ea3b931c6b1fec8839c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=AC?= <605682551@qq.com> Date: Tue, 31 Dec 2019 14:14:34 +0800 Subject: [PATCH 1/8] =?UTF-8?q?fix[Logout]:=20click=20blank=20area=20of=20?= =?UTF-8?q?=E2=80=8B=E2=80=8BdropDown=20able=20to=20logout=20(#2896)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 9d5c6658..8beb27f8 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -44,8 +44,8 @@ Docs - - {{ $t('navbar.logOut') }} + + {{ $t('navbar.logOut') }} From 1d707e4ab6b619d3a2ca8e9bee10f566e240ae7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=BE=BD=E9=A3=9E?= Date: Mon, 6 Jan 2020 22:22:37 +0800 Subject: [PATCH 2/8] perf: import mockXHR only in production (#2910) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 自动排除mock 生产环境,使用webpack的条件编译自动排除mock数据 * perf: refine Co-authored-by: 花裤衩 --- src/main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index e218bd83..b00b3715 100644 --- a/src/main.js +++ b/src/main.js @@ -26,11 +26,12 @@ import * as filters from './filters' // global filters * you can execute: mockXHR() * * Currently MockJs will be used in the production environment, - * please remove it before going online! ! ! + * please remove it before going online ! ! ! */ -import { mockXHR } from '../mock' if (process.env.NODE_ENV === 'production') { - mockXHR() + import('../mock').then(({ mockXHR }) => { + mockXHR() + }) } Vue.use(Element, { From be18a69fa410004de88885b1b49756ad5574e095 Mon Sep 17 00:00:00 2001 From: Kaitian Xie Date: Mon, 6 Jan 2020 06:34:14 -0800 Subject: [PATCH 3/8] perf[Menu]: remove unused menu-wrapper (#2903) --- src/layout/components/Sidebar/SidebarItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index b4422cf8..f87b70b1 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -1,5 +1,5 @@