-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
import '@babel/polyfill' | ||
import Vue from 'vue' | ||
import App from './App.vue' | ||
import router from './router' | ||
import store from './store/' | ||
import { VueAxios } from '@/utils/request' // axios 不建议引入到 Vue 原型链上 | ||
|
||
import './core/use' | ||
import bootstrap from './core/bootstrap' | ||
import '@/permission' // permission control | ||
import '@/utils/filter' // global filter | ||
|
||
Vue.config.productionTip = false | ||
|
||
Vue.use(VueAxios, router) | ||
|
||
new Vue({ | ||
router, | ||
store, | ||
created () { | ||
bootstrap() | ||
}, | ||
render: h => h(App) | ||
}).$mount('#app') | ||
// ie polyfill | ||
import '@babel/polyfill' | ||
|
||
import Vue from 'vue' | ||
import App from './App.vue' | ||
import router from './router' | ||
import store from './store/' | ||
import { VueAxios } from './utils/request' | ||
|
||
import bootstrap from './core/bootstrap' | ||
import './core/use' | ||
import './permission' // permission control | ||
import './utils/filter' // global filter | ||
|
||
Vue.config.productionTip = false | ||
|
||
// mount axios Vue.$http and this.$http | ||
Vue.use(VueAxios) | ||
|
||
new Vue({ | ||
router, | ||
store, | ||
created () { | ||
bootstrap() | ||
}, | ||
render: h => h(App) | ||
}).$mount('#app') |