mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-26 16:08:13 -05:00
23 lines
540 B
JavaScript
23 lines
540 B
JavaScript
|
import Vue from 'vue'
|
||
|
import axios from 'axios'
|
||
|
import ElementUI from 'element-ui'
|
||
|
import 'element-ui/lib/theme-chalk/index.css'
|
||
|
import App from './App'
|
||
|
import router from './router'
|
||
|
import store from './store'
|
||
|
import db from '../datastore/index'
|
||
|
Vue.use(ElementUI)
|
||
|
|
||
|
if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
|
||
|
Vue.http = Vue.prototype.$http = axios
|
||
|
Vue.prototype.$db = db
|
||
|
Vue.config.productionTip = false
|
||
|
|
||
|
/* eslint-disable no-new */
|
||
|
new Vue({
|
||
|
components: { App },
|
||
|
router,
|
||
|
store,
|
||
|
template: '<App/>'
|
||
|
}).$mount('#app')
|