mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-23 03:17:41 +08:00
35 lines
775 B
JavaScript
35 lines
775 B
JavaScript
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 './css/global.css'
|
|
// import VConsole from 'vconsole'
|
|
// const vConsole = new VConsole()
|
|
|
|
Vue.config.productionTip = false
|
|
Vue.prototype.$bus = new Vue()
|
|
Vue.use(ElementUI)
|
|
Vue.use(VueViewer)
|
|
Vue.mixin({
|
|
data () {
|
|
return {
|
|
IS_ELECTRON: window.IS_ELECTRON,
|
|
IS_MAC: window.platform === 'darwin',
|
|
IS_WIN: window.platform === 'win32'
|
|
}
|
|
}
|
|
})
|
|
|
|
new Vue({
|
|
render: h => h(App),
|
|
router,
|
|
store,
|
|
i18n
|
|
}).$mount('#app')
|