mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-25 07:57:18 +08:00
refactor: 修改验证码的加载时间
This commit is contained in:
parent
76efc1d28c
commit
8d59c5f9a1
@ -1,5 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, toRaw, reactive, onMounted, onBeforeUnmount } from "vue";
|
||||
import {
|
||||
ref,
|
||||
toRaw,
|
||||
reactive,
|
||||
onMounted,
|
||||
onBeforeUnmount,
|
||||
onBeforeMount
|
||||
} from "vue";
|
||||
import Motion from "./utils/motion";
|
||||
import { useRouter } from "vue-router";
|
||||
import { message } from "@/utils/message";
|
||||
@ -90,6 +97,10 @@ async function getCaptchaCode() {
|
||||
});
|
||||
}
|
||||
|
||||
onBeforeMount(() => {
|
||||
getCaptchaCode();
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
window.document.addEventListener("keypress", onkeypress);
|
||||
getCaptchaCode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user