/** * 获取当前页面路径 * @returns 当前页面路径 */ export function getCurrentPath() { const pages = getCurrentPages() const currentPage = pages[pages.length - 1] return currentPage.route || '' } /** * 统一跳转小程序方法 * @param appid * */ export function navCommonMiniProgram(appid: string) { uni.navigateToMiniProgram({ appId: appid, }) }