From 141600875cb7df5c1d591d5f72fc298aa2f42d68 Mon Sep 17 00:00:00 2001 From: breeze-yang Date: Fri, 23 Nov 2018 16:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7roadhog=20=E8=A7=A3=E5=86=B3u?= =?UTF-8?q?glify=20=E5=8E=8B=E7=BC=A9=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=20=20=E8=AF=A6=E6=83=85=E8=AF=B7=E7=9C=8B=EF=BC=9Ahttps://g?= =?UTF-8?q?ithub.com/sorrycc/blog/issues/68?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .webpackrc.js | 1 + package.json | 3 ++- src/components/indexPage/LotteryPage.js | 3 ++- src/routes/IndexPage/HomePage.js | 2 -- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.webpackrc.js b/.webpackrc.js index 86b1101..e07539f 100644 --- a/.webpackrc.js +++ b/.webpackrc.js @@ -1,4 +1,5 @@ export default { + es5ImcompatibleVersions: true, extraBabelPlugins: [ ['import', { libraryName: 'antd-mobile', style: true }] //按需加载antd-mobile样式文件 ], diff --git a/package.json b/package.json index f447824..4ddfd08 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "build": "cross-env API_ENV=prod roadhog build", "lint": "eslint --ext .js src test", "precommit": "npm run lint", + "deploy": "npm run build && scp -r dist/ prod-2-deploy:/deploy/production/kk-mobile/", "deploy-test": "npm run build && scp -r dist/ test-1-deploy:/deploy/test/kk-mobile/" }, "dependencies": { @@ -31,6 +32,6 @@ "eslint-plugin-react": "^7.1.0", "husky": "^0.12.0", "redbox-react": "^1.4.3", - "roadhog": "^2.0.0" + "roadhog": "^2.4.0" } } diff --git a/src/components/indexPage/LotteryPage.js b/src/components/indexPage/LotteryPage.js index 88067e7..147dddb 100644 --- a/src/components/indexPage/LotteryPage.js +++ b/src/components/indexPage/LotteryPage.js @@ -17,7 +17,8 @@ export default class LotteryPage extends Component { onClose={onClose} > { - store.dispatch(routerRedux.push('/homepage/loadApp')) + store.dispatch(routerRedux.push('/homepage/loadApp')); + onClose(); }}/>