Fixed: custom url bugs & updated picgo version

This commit is contained in:
Molunerfinn
2019-01-22 09:48:36 +08:00
parent 193946c469
commit aabc0028af
3 changed files with 5 additions and 47 deletions

View File

@@ -1,7 +1,7 @@
import db from '../../datastore'
export default (style, url) => {
const customLink = db.read().get('customLink').value() || '$url'
const customLink = db.read().get('settings.customLink').value() || '$url'
const tpl = {
'markdown': `![](${url})`,
'HTML': `<img src="${url}"/>`,