From 2955f9a172e50d9b126c739c5f8eab307d892be7 Mon Sep 17 00:00:00 2001 From: kennylbj <632786081@qq.com> Date: Fri, 21 Sep 2018 10:43:35 +0800 Subject: [PATCH] Fix typo --- mock/chart.js | 1 - src/layouts/BasicLayout.js | 4 ++-- src/models/setting.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mock/chart.js b/mock/chart.js index f9a98078..65037758 100644 --- a/mock/chart.js +++ b/mock/chart.js @@ -158,7 +158,6 @@ const radarOriginData = [ }, ]; -// const radarData = []; const radarTitleMap = { ref: '引用', diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index bf9cf4fe..731b3b93 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -206,8 +206,8 @@ class BasicLayout extends React.PureComponent { }; renderSettingDrawer() { - // Do show SettingDrawer in production - // unless deployed in preview.pro.ant.design as demo + // Do not render SettingDrawer in production + // unless it is deployed in preview.pro.ant.design as demo const { rendering } = this.state; if ((rendering || process.env.NODE_ENV === 'production') && APP_TYPE !== 'site') { return null; diff --git a/src/models/setting.js b/src/models/setting.js index 477a9588..171da48d 100644 --- a/src/models/setting.js +++ b/src/models/setting.js @@ -3,7 +3,7 @@ import defaultSettings from '../defaultSettings'; let lessNodesAppended; const updateTheme = primaryColor => { - // // Don't compile less in production! + // Don't compile less in production! if (APP_TYPE !== 'site') { return; } -- GitLab