mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-24 15:18:14 -05:00
30 lines
767 B
JavaScript
30 lines
767 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'
|
|
import { webFrame } from 'electron'
|
|
import './assets/fonts/iconfont.css'
|
|
import picBed from '../datastore/pic-bed'
|
|
Vue.use(ElementUI)
|
|
|
|
webFrame.setVisualZoomLevelLimits(1, 1)
|
|
webFrame.setLayoutZoomLevelLimits(0, 0)
|
|
|
|
if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
|
|
Vue.http = Vue.prototype.$http = axios
|
|
Vue.prototype.$db = db
|
|
Vue.prototype.$picBed = picBed
|
|
Vue.config.productionTip = false
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
components: { App },
|
|
router,
|
|
store,
|
|
template: '<App/>'
|
|
}).$mount('#app')
|