PicList/src/main.ts

39 lines
833 B
TypeScript
Raw Normal View History

2017-11-27 19:21:12 -05:00
import Vue from 'vue'
2019-12-19 06:17:21 -05:00
import App from './renderer/App.vue'
import router from './renderer/router'
import db from '#/datastore/index'
2017-11-27 19:21:12 -05:00
import ElementUI from 'element-ui'
import { webFrame } from 'electron'
2019-12-19 06:17:21 -05:00
import 'element-ui/lib/theme-chalk/index.css'
2018-06-26 09:11:04 -04:00
import VueLazyLoad from 'vue-lazyload'
import axios from 'axios'
import mainMixin from './renderer/utils/mainMixin'
import bus from '@/utils/bus'
2018-06-26 09:11:04 -04:00
webFrame.setVisualZoomLevelLimits(1, 1)
webFrame.setLayoutZoomLevelLimits(0, 0)
2019-12-19 06:17:21 -05:00
Vue.config.productionTip = false
2018-12-23 10:15:00 -05:00
Vue.prototype.$builtInPicBed = [
'smms',
'weibo',
'imgur',
'qiniu',
'tcyun',
'upyun',
'aliyun',
'github'
]
2019-12-19 06:17:21 -05:00
Vue.prototype.$db = db
Vue.prototype.$http = axios
Vue.prototype.$bus = bus
2019-12-19 06:17:21 -05:00
Vue.use(ElementUI)
Vue.use(VueLazyLoad)
Vue.mixin(mainMixin)
2017-11-27 19:21:12 -05:00
new Vue({
router,
2019-12-19 06:17:21 -05:00
render: h => h(App)
2017-11-27 19:21:12 -05:00
}).$mount('#app')