zjk
2026-04-07 a234daae903a3a688978a5b11f738fbf3ad46ae9
1
2
3
4
5
6
7
8
9
/**
 * 获取当前页面路径
 * @returns 当前页面路径
 */
export function getCurrentPath() {
  const pages = getCurrentPages()
  const currentPage = pages[pages.length - 1]
  return currentPage.route || ''
}