From ac4865ab2d609668ca27f85e8fd20fb8cb71f278 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 13 May 2019 12:56:39 +0800 Subject: [PATCH 1/2] chore: use mockjs in production environment --- src/main.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index 4ba95a7..1175231 100644 --- a/src/main.js +++ b/src/main.js @@ -17,12 +17,16 @@ import '@/permission' // permission control /** * If you don't want to use mock-server - * you want to use mockjs for request interception - * you can execute: + * you want to use MockJs for mock api + * you can execute: mockXHR() * - * import { mockXHR } from '../mock' - * mockXHR() + * Currently MockJs will be used in the production environment, + * please remove it before going online! ! ! */ +import { mockXHR } from '../mock' +if (process.env.NODE_ENV === 'production') { + mockXHR() +} // set ElementUI lang to EN Vue.use(ElementUI, { locale }) From b6753d0373242afa110995583e68b230ed4bc4a3 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 13 May 2019 12:57:01 +0800 Subject: [PATCH 2/2] fix[sidebar.css]: remove redundant css --- src/styles/sidebar.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index e55f865..3dad4c3 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -95,10 +95,6 @@ margin-left: 54px; } - .svg-icon { - margin-right: 0px; - } - .submenu-title-noDropdown { padding: 0 !important; position: relative;