mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 10:02:30 +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) => {
|
photoCreatorClick: (url) => {
|
||||||
shell.openExternal(url)
|
shell.openExternal(url)
|
||||||
},
|
},
|
||||||
jumpClick: (linkInfo) => {
|
jumpClick (linkInfo) {
|
||||||
const { href } = linkInfo
|
const { href } = linkInfo
|
||||||
if (href && href.startsWith('http')) {
|
this.$store.dispatch('FORMAT_LINK_CLICK', { data: { href }, dirname: window.DIRNAME })
|
||||||
shell.openExternal(href)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
async imagePathAutoComplete (src) {
|
async imagePathAutoComplete (src) {
|
||||||
const files = await this.$store.dispatch('ASK_FOR_IMAGE_AUTO_PATH', src)
|
const files = await this.$store.dispatch('ASK_FOR_IMAGE_AUTO_PATH', src)
|
||||||
|
Loading…
Reference in New Issue
Block a user