mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
fix build
This commit is contained in:
@@ -374,6 +374,9 @@ export const scanAndConvertToLinks = node => {
|
||||
* @returns
|
||||
*/
|
||||
export function getLastSegmentFromUrl(url) {
|
||||
if (!url) {
|
||||
return ''
|
||||
}
|
||||
// 去掉 URL 中的查询参数部分
|
||||
const trimmedUrl = url.split('?')[0]
|
||||
// 获取最后一个斜杠后面的内容
|
||||
|
||||
Reference in New Issue
Block a user