You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
913 B

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/icon-font/iconfont.css'
import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'
import i18n from './i18n'
import { getLang } from '@/api'
import markdown from 'simple-mind-map/src/parse/markdown.js';
// import VConsole from 'vconsole'
// const vConsole = new VConsole()
window.markdownParse = markdown;
Vue.config.productionTip = false
const bus = new Vue()
Vue.prototype.$bus = bus
Vue.use(ElementUI)
Vue.use(VueViewer)
const initApp = () => {
i18n.locale = getLang()
new Vue({
render: h => h(App),
router,
store,
i18n
}).$mount('#app')
}
// 是否处于接管应用模式
if (window.takeOverApp) {
window.initApp = initApp
window.$bus = bus
} else {
initApp()
}