feat: 更新应用标题和描述,调整谷歌验证和登录流程以支持二步验证

This commit is contained in:
2026-01-20 07:09:11 +07:00
parent 220b14be30
commit 322530e45f
6 changed files with 99 additions and 37 deletions

View File

@@ -20,6 +20,7 @@ const totpCode = ref('');
const loading = ref(false);
const verifying = ref(false);
const disabling = ref(false);
const { VITE_APP_TITLE } = import.meta.env;
function generateQRCode(url: string) {
return `https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(url)}`;
@@ -35,7 +36,7 @@ async function enableTwoFactor() {
const { data } = await safeClient(
authClient.twoFactor.enable({
password: props.password,
issuer: 'my-app-name'
issuer: VITE_APP_TITLE || 'financial-admin'
})
);
loading.value = false;