resetPassword.ts 300 B

1234567891011121314151617
  1. import { ref } from 'vue';
  2. export default function resetPassword() {
  3. const dialogVisible = ref(false);
  4. const resetId = ref(0);
  5. function isShowDialog(id: number) {
  6. dialogVisible.value = true;
  7. resetId.value = id;
  8. }
  9. return {
  10. dialogVisible,
  11. resetId,
  12. isShowDialog,
  13. };
  14. }