Skip to content

Commit a8fbcad

Browse files
committed
import babel-polyfill
兼容ie8
1 parent 3120b1a commit a8fbcad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"axios": "^0.18.0",
13+
"babel-polyfill": "^6.26.0",
1314
"core-js": "^2.6.5",
1415
"mint-ui": "^2.2.13",
1516
"mockjs": "^1.0.1-beta3",
@@ -59,4 +60,4 @@
5960
"last 2 versions",
6061
"not ie <= 8"
6162
]
62-
}
63+
}

src/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import App from '@/App'
55
import router from '@/router'
66
import store from '@/store'
77

8+
// 兼容IE8以上
9+
import 'babel-polyfill'
10+
811
// 第三方库
912
import MintUI, { Indicator, Toast } from 'mint-ui'
1013
import 'mint-ui/lib/style.css'

0 commit comments

Comments
 (0)