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 // The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import './polyfill/index'
import Vue from 'vue' import Vue from 'vue'
import router from './router' import router from './router'
import App from './app.vue' import App from './app.vue'
import store from './store' import store from './store'
import plugin from './plugin' import plugin from './plugin'
import routerStore from '../libraries/plugins/RouterStore' import routerStore from '../libraries/plugins/RouterStore'
import VConsole from 'vconsole' import * as Api from '@/api/index'
if(process.env.PACK_VENV==='vtest'){
new VConsole()
}
Vue.use(routerStore, store, router) Vue.use(routerStore, store, router)
...@@ -17,11 +15,15 @@ Vue.config.debug = process.env.NODE_ENV !== 'production' ...@@ -17,11 +15,15 @@ Vue.config.debug = process.env.NODE_ENV !== 'production'
Vue.config.productionTip = false Vue.config.productionTip = false
/* eslint-disable no-new */ /* eslint-disable no-new */
new Vue({ const vm = new Vue({
el: '#app',
store, store,
router, router,
plugin, plugin,
template: '<App/>', template: '<App/>',
components: { 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