Browse Source

fix(password): fix typo

gemercheung 1 year ago
parent
commit
e50185c003
1 changed files with 14 additions and 9 deletions
  1. 14 9
      src/view/users-password-edit.vue

+ 14 - 9
src/view/users-password-edit.vue

@@ -59,6 +59,7 @@ import {
 } from "@/request";
 
 import { ref, reactive, unref, onMounted, watchEffect } from "vue";
+import { onUnmounted } from "vue";
 const addPassFlag = ref(false)//图标显示标识
 
 const baseFormRef = ref<FormInstance>();
@@ -124,17 +125,21 @@ let checkCodeBtn = reactive<any>({
 })
 
 onMounted(async () => {
-  const data = await getOrgListFetch({
-    pageNum: 1,
-    pageSize: 10000,
-  })
-  // console.log('allOrgs', data.records);
-  allOrgs.value = Array.from(data.records).map((item: OrganizationType) => {
-    const i: SelectType = { value: item['orgName'], id: item['orgId'] }
-    return i
-  });
+  // const data = await getOrgListFetch({
+  //   pageNum: 1,
+  //   pageSize: 10000,
+  // })
+  // // console.log('allOrgs', data.records);
+  // allOrgs.value = Array.from(data.records).map((item: OrganizationType) => {
+  //   const i: SelectType = { value: item['orgName'], id: item['orgId'] }
+  //   return i
+  // });
 
 })
+onUnmounted(() => {
+  // 清除掉定时器
+  checkCodeBtn.timer && clearInterval(checkCodeBtn.timer)
+})
 
 
 // const setParentId = () => {