Skip to content

Commit

Permalink
fix: jum url
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh22222228 committed Aug 16, 2024
1 parent 547a867 commit 68150a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/jump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export class JumpService {
}

const self = url[0] === '!'
window.open(url, self ? '_self' : '_blank')
if (self) {
window.open(url.slice(1), '_self')
} else {
window.open(url)
}
}
}

0 comments on commit 68150a8

Please sign in to comment.