mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 20:19:25 +08:00
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:
parent
858babc695
commit
c90bdadb90
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user