Fix jumpClick can't jump to another file (#1725)

* Fix jumpClick can't jump to another file (#1721)

* Clean up code
This commit is contained in:
He Linming 2019-11-20 22:26:24 +08:00 committed by Ran Luo
parent 858babc695
commit c90bdadb90

View File

@ -675,11 +675,9 @@ export default {
photoCreatorClick: (url) => {
shell.openExternal(url)
},
jumpClick: (linkInfo) => {
jumpClick (linkInfo) {
const { href } = linkInfo
if (href && href.startsWith('http')) {
shell.openExternal(href)
}
this.$store.dispatch('FORMAT_LINK_CLICK', { data: { href }, dirname: window.DIRNAME })
},
async imagePathAutoComplete (src) {
const files = await this.$store.dispatch('ASK_FOR_IMAGE_AUTO_PATH', src)