|
|
@@ -1,24 +1,12 @@
|
|
|
import 'es6-promise/auto';
|
|
|
+import 'babel-polyfill'
|
|
|
import Vue from 'vue'
|
|
|
import App from './App.vue'
|
|
|
import router from './router'
|
|
|
import axiosApi from './request/api'
|
|
|
-import 'babel-polyfill'
|
|
|
Vue.config.productionTip = false
|
|
|
Vue.prototype.$http = axiosApi
|
|
|
new Vue({
|
|
|
router,
|
|
|
render: h => h(App)
|
|
|
}).$mount('#app')
|
|
|
-
|
|
|
-if (
|
|
|
- '-ms-scroll-limit' in document.documentElement.style &&
|
|
|
- '-ms-ime-align' in document.documentElement.style
|
|
|
-) { // detect it's IE11
|
|
|
- window.addEventListener("hashchange", function(event) {
|
|
|
- var currentPath = window.location.hash.slice(1);
|
|
|
- if (store.state.route.path !== currentPath) {
|
|
|
- router.push(currentPath)
|
|
|
- }
|
|
|
- }, false)
|
|
|
-}
|