mirror of
https://github.com/QingdaoU/OnlineJudgeFE.git
synced 2025-01-01 09:31:42 +00:00
Merge pull request #6 from QingdaoU/polyfill_promise
add polyfill for promise
This commit is contained in:
commit
fe2ea6a525
@ -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,
|
||||
|
@ -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",
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user