useGoback.js 137 B

123456789101112
  1. export function useGoBack() {
  2. /**
  3. * 返回
  4. */
  5. const goBack = () => {
  6. uni.navigateBack();
  7. }
  8. return {
  9. goBack
  10. }
  11. }