removeLeadingSlash 函数用于移除 URL 的开头斜杠。
import { removeLeadingSlash } from '@movk/core'
removeLeadingSlash('/path/to/page') // 'path/to/page'
removeLeadingSlash('///path') // 'path'
removeLeadingSlash('path') // 'path'
removeLeadingSlash(url)移除 URL 的开头斜杠。
7c832 — refactor!: 重构模块架构,拆分 utils 为专业化模块