Pārlūkot izejas kodu

更改接口名称

lifanagju_citu 7 mēneši atpakaļ
vecāks
revīzija
997a59aeb4
2 mainītis faili ar 4 papildinājumiem un 12 dzēšanām
  1. 1 1
      src/api/common/index.js
  2. 3 11
      src/views/login/forgotPasswordEnt.vue

+ 1 - 1
src/api/common/index.js

@@ -101,7 +101,7 @@ export const updatePassword = async (data) => {
 // 重置密码
 export const resetPassword = async (data) => {
   return await request.put({
-    url: '/app-api/menduner/system/mde-user/reset-password',
+    url: '/app-api/menduner/system/auth/reset-password',
     data
   })
 }

+ 3 - 11
src/views/login/forgotPasswordEnt.vue

@@ -13,7 +13,7 @@
     :captchaType="captchaType"
     :imgSize="{ width: '400px', height: '200px' }"
     mode="pop"
-    @success="verifySuccess"
+    @success="verifySuccess = true"
   />
 </template>
 
@@ -29,22 +29,14 @@ const router = useRouter()
 
 
 // 验证码
-const useVerify = ref(true)
 const verify = ref()
 const captchaType = ref('blockPuzzle') // blockPuzzle 滑块 clickWord 点击文字
 
 const verifySuccess = ref(false)
 // 获取验证码
 const getCode = async () => {
-  // 情况一,未开启:则直接登录
-  if (!useVerify.value) {
-    // await handleSubmit()
-    verifySuccess.value = true
-  } else {
-    // 情况二,已开启:则展示验证码;只有完成验证码的情况,才进行登录
-    // 弹出验证码
-    verify.value.show()
-  }
+  // 弹出验证码 // 已开启:则展示验证码;只有完成验证码的情况,才进行登录
+  verify.value.show()
 }
 </script>