Vanessa 2024-04-26 23:27:50 +08:00
parent 41e6c78bdb
commit fe925964d5
3 changed files with 14 additions and 15 deletions

View file

@ -696,7 +696,7 @@ export const openBy = (url: string, type: "folder" | "app") => {
/// #endif
};
export const openLink = (protyle: IProtyle, aLink: string, event: MouseEvent | KeyboardEvent, ctrlIsPressed = false) => {
export const openLink = (protyle: IProtyle, aLink: string, event?: MouseEvent, ctrlIsPressed = false) => {
let linkAddress = Lute.UnEscapeHTMLStr(aLink);
/// #if MOBILE
openByMobile(linkAddress);