Support IE

pull/34/head
lin-xin 2017-03-28 10:26:07 +08:00
parent 7ee40d9cf9
commit 03d34444d2
3 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ function resolve (dir) {
module.exports = { module.exports = {
entry: { entry: {
app: './src/main.js' app: ['babel-polyfill','./src/main.js']
}, },
output: { output: {
path: config.build.assetsRoot, path: config.build.assetsRoot,

View File

@ -10,6 +10,7 @@
}, },
"dependencies": { "dependencies": {
"axios": "^0.15.3", "axios": "^0.15.3",
"babel-polyfill": "^6.23.0",
"element-ui": "^1.2.2", "element-ui": "^1.2.2",
"vue": "^2.1.10", "vue": "^2.1.10",
"vue-core-image-upload": "^2.0.5", "vue-core-image-upload": "^2.0.5",

View File

@ -4,9 +4,9 @@ import router from './router';
import ElementUI from 'element-ui'; import ElementUI from 'element-ui';
import 'element-ui/lib/theme-default/index.css'; // 默认主题 import 'element-ui/lib/theme-default/index.css'; // 默认主题
// import '../static/css/theme-green/index.css'; // 浅绿色主题 // import '../static/css/theme-green/index.css'; // 浅绿色主题
import "babel-polyfill";
Vue.use(ElementUI); Vue.use(ElementUI);
new Vue({ new Vue({
router, router,
render: h => h(App) render: h => h(App)
}).$mount('#app'); }).$mount('#app');