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