Merge pull request #6 from QingdaoU/polyfill_promise

add polyfill for promise
This commit is contained in:
李扬 2017-12-15 13:44:09 +08:00 committed by GitHub
commit fe2ea6a525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -12,8 +12,8 @@ function resolve (dir) {
module.exports = {
entry: {
'oj': './src/pages/oj/index.js',
'admin': './src/pages/admin/index.js'
'oj': ['babel-polyfill', './src/pages/oj/index.js'],
'admin': ['babel-polyfill', './src/pages/admin/index.js']
},
output: {
path: config.build.assetsRoot,

View File

@ -13,6 +13,7 @@
},
"dependencies": {
"axios": "^0.17.0",
"babel-polyfill": "^6.26.0",
"browser-detect": "^0.2.18",
"echarts": "^3.8.3",
"element-ui": "^2.0.5",

View File

@ -9,6 +9,13 @@
<link rel="shortcut icon" href="/public/website/favicon.ico">
<link href="static/css/loader.css" rel="stylesheet">
<script>
// IE 10 and earlier
if (window.navigator.userAgent.indexOf('MSIE ') > 0 &&
window.confirm('Your browser is not supported, click \'OK\' to update')) {
window.location = 'http://outdatedbrowser.com'
}
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({