Added: picgo-setting page

This commit is contained in:
Molunerfinn
2018-04-28 00:16:17 +08:00
parent ad71117876
commit d042c93bec
6 changed files with 138 additions and 37 deletions

View File

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