fix build

This commit is contained in:
tangly1024
2024-06-15 12:20:25 +08:00
parent f03984649a
commit 496306958f

View File

@@ -374,6 +374,9 @@ export const scanAndConvertToLinks = node => {
* @returns
*/
export function getLastSegmentFromUrl(url) {
if (!url) {
return ''
}
// 去掉 URL 中的查询参数部分
const trimmedUrl = url.split('?')[0]
// 获取最后一个斜杠后面的内容