puzhibing
2026-08-28 e92cd56bb56b111c1afe9922191f9897215ff6b0
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 || ''
}