This commit is contained in:
archer
2023-07-20 10:01:45 +08:00
parent 62ee28b130
commit 75c8c42530
8 changed files with 33 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ import { UserAuthTypeEnum } from '@/constants/common';
let timer: any;
import { useToast } from './useToast';
import { getClientToken } from '@/utils/plugin/google';
import { googleVerKey } from '@/store/static';
import { googleClientVerKey } from '@/store/static';
export const useSendCode = () => {
const { toast } = useToast();
@@ -27,7 +27,7 @@ export const useSendCode = () => {
await sendAuthCode({
username,
type,
googleToken: await getClientToken(googleVerKey)
googleToken: await getClientToken(googleClientVerKey)
});
setCodeCountDown(60);
timer = setInterval(() => {