Unverified Commit d822ccf0 by Sendya

chore: main.js fix

parent 77cf85c7
import '@babel/polyfill' // ie polyfill
import Vue from 'vue' import '@babel/polyfill'
import App from './App.vue'
import router from './router' import Vue from 'vue'
import store from './store/' import App from './App.vue'
import { VueAxios } from '@/utils/request' // axios 不建议引入到 Vue 原型链上 import router from './router'
import store from './store/'
import './core/use' import { VueAxios } from './utils/request'
import bootstrap from './core/bootstrap'
import '@/permission' // permission control import bootstrap from './core/bootstrap'
import '@/utils/filter' // global filter import './core/use'
import './permission' // permission control
Vue.config.productionTip = false import './utils/filter' // global filter
Vue.use(VueAxios, router) Vue.config.productionTip = false
new Vue({ // mount axios Vue.$http and this.$http
router, Vue.use(VueAxios)
store,
created () { new Vue({
bootstrap() router,
}, store,
render: h => h(App) created () {
}).$mount('#app') bootstrap()
},
render: h => h(App)
}).$mount('#app')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment