Commit b2ed08b0 by zhongqm

update: 补qing

parent 8483e910
Pipeline #24831 failed with stage
in 0 seconds
Showing with 8 additions and 6 deletions
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import './polyfill/index'
import Vue from 'vue'
import router from './router'
import App from './app.vue'
import store from './store'
import plugin from './plugin'
import routerStore from '../libraries/plugins/RouterStore'
import VConsole from 'vconsole'
if(process.env.PACK_VENV==='vtest'){
new VConsole()
}
import * as Api from '@/api/index'
Vue.use(routerStore, store, router)
......@@ -17,11 +15,15 @@ Vue.config.debug = process.env.NODE_ENV !== 'production'
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',
const vm = new Vue({
store,
router,
plugin,
template: '<App/>',
components: { App }
})
window.qing.ready(async () => {
// 初始化 token
await Api.setToken(vm)
vm.$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 sign in to comment