longz
2026-06-25 66e3e77580f3bf51830e39c9322a69002bf18671
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 || ''
}