From 1634f44f698375962474ccd1c4b2ca71cf7eeb98 Mon Sep 17 00:00:00 2001 From: nesxy Date: Mon, 18 Mar 2019 18:04:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BD=8E=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E5=AF=B9es6=E7=9A=84=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src/main.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 299e8f3..84316ae 100644 --- a/package.json +++ b/package.json @@ -24,9 +24,10 @@ }, "devDependencies": { "autoprefixer": "^6.7.2", - "babel-core": "^6.26.0", + "babel-core": "^5.8.38", "babel-loader": "^6.2.10", "babel-plugin-transform-runtime": "^6.22.0", + "babel-polyfill": "^6.26.0", "babel-preset-env": "^1.6.0", "babel-preset-stage-2": "^6.24.1", "babel-register": "^6.26.0", diff --git a/src/main.js b/src/main.js index 9d3f8c7..9823abe 100644 --- a/src/main.js +++ b/src/main.js @@ -23,6 +23,9 @@ import "@/assets/styles/swiper.css"; //import wx from 'weixin-js-sdk' //import axios from 'axios' import "@/models/wxShare.js"; +import 'babel-polyfill'; +import promise from 'es6-promise'; +promise.polyfill(); Vue.config.productionTip = false; Vue.use(WechatPlugin);