From 8b03bd0f1fa543e03dc4f76db13b72aa9c10649c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 22 Aug 2018 10:16:34 +0800 Subject: [PATCH] fix #2027 style warning --- package.json | 1 + scripts/generateMock.js | 1 + src/components/GlobalHeader/RightContent.js | 6 +++++- src/components/TopNavHeader/index.less | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 78e1bcea..a76b52f8 100755 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "@types/react": "^16.4.11", "@types/react-dom": "^16.0.6", "antd-pro-merge-less": "^0.0.6", + "merge-umi-mock-data": "^0.0.2", "antd-theme-webpack-plugin": "^1.0.8", "babel-eslint": "^8.2.6", "babel-runtime": "^6.9.2", diff --git a/scripts/generateMock.js b/scripts/generateMock.js index 54c7d6d6..1f1fbbf8 100644 --- a/scripts/generateMock.js +++ b/scripts/generateMock.js @@ -1,3 +1,4 @@ const generateMock = require('merge-umi-mock-data'); const path = require('path'); +console.log(path.join(__dirname, '../mock'), path.join(__dirname, '../functions/mock/index.js')); generateMock(path.join(__dirname, '../mock'), path.join(__dirname, '../functions/mock/index.js')); diff --git a/src/components/GlobalHeader/RightContent.js b/src/components/GlobalHeader/RightContent.js index 9cc347fe..3c882b9f 100644 --- a/src/components/GlobalHeader/RightContent.js +++ b/src/components/GlobalHeader/RightContent.js @@ -73,7 +73,8 @@ export default class GlobalHeaderRight extends PureComponent { - 退出登录 + + 退出登录 ); @@ -154,6 +155,9 @@ export default class GlobalHeaderRight extends PureComponent {