Skip to content

Commit

Permalink
fix(sheets-hyper-link): build url (#3503)
Browse files Browse the repository at this point in the history
  • Loading branch information
weird94 authored Sep 20, 2024
1 parent c4601a0 commit 25b7b66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class SheetsHyperLinkResolverService {
}

buildHyperLink(unitId: string, sheetId: string, range?: string | IRange): string {
return `#${SheetHyperLinkType.SHEET}=${sheetId}}${range ? `${typeof range === 'string' ? SheetHyperLinkType.DEFINE_NAME : SheetHyperLinkType.RANGE}=${typeof range === 'string' ? range : serializeRange(range)}` : ''}`;
return `#${SheetHyperLinkType.SHEET}=${sheetId}${range ? `&${typeof range === 'string' ? SheetHyperLinkType.DEFINE_NAME : SheetHyperLinkType.RANGE}=${typeof range === 'string' ? range : serializeRange(range)}` : ''}`;
}

parseHyperLink(urlStr: string): ISheetHyperLinkInfo {
Expand Down

0 comments on commit 25b7b66

Please sign in to comment.