Fixed: memeory out bug

This commit is contained in:
Molunerfinn
2018-05-02 19:06:10 +08:00
parent eaa348ad56
commit 9fdd54ca16
4 changed files with 18 additions and 20 deletions

View File

@@ -54,7 +54,6 @@
</template>
<script>
import mixin from '../mixin'
import { picBed } from '../../../datastore/pic-bed'
export default {
name: 'upload',
mixins: [mixin],
@@ -132,7 +131,7 @@ export default {
},
getDefaultPicBed () {
const current = this.$db.read().get('picBed.current').value()
picBed.forEach(item => {
this.$picBed.forEach(item => {
if (item.type === current) {
this.picBed = item.name
}

View File

@@ -8,7 +8,7 @@ import store from './store'
import db from '../datastore/index'
import { webFrame } from 'electron'
import './assets/fonts/iconfont.css'
import { picBed } from '../datastore/pic-bed'
import picBed from '../datastore/pic-bed'
Vue.use(ElementUI)
webFrame.setVisualZoomLevelLimits(1, 1)