export const back = () => {
  uni.navigateBack()
}
export const useRouter = () => {
  const push = async (path: string) => {
    uni.navigateTo({ url: path })
  }
  const replace = async (path: string) => {
    uni.redirectTo({ url: path })
  }
  const back = () => {
    uni.navigateBack()
  }
  return { push, replace, back }
}
