fix: config

This commit is contained in:
archer
2023-08-05 11:51:40 +08:00
parent 761ae74b0a
commit 37a6293f5e
11 changed files with 39 additions and 67 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 { googleClientVerKey } from '@/store/static';
import { feConfigs } from '@/store/static';
export const useSendCode = () => {
const { toast } = useToast();
@@ -27,7 +27,7 @@ export const useSendCode = () => {
await sendAuthCode({
username,
type,
googleToken: await getClientToken(googleClientVerKey)
googleToken: await getClientToken(feConfigs.googleClientVerKey)
});
setCodeCountDown(60);
timer = setInterval(() => {