mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
7 lines
191 B
TypeScript
7 lines
191 B
TypeScript
import { isLinkHttp } from 'vuepress/shared'
|
|
import { withBase } from 'vuepress/client'
|
|
|
|
export function normalizeLink(url: string): string {
|
|
return isLinkHttp(url) ? url : withBase(url)
|
|
}
|