fix: code bugs (#734)

This commit is contained in:
Dream Hunter
2025-09-26 19:05:08 +08:00
committed by GitHub
parent de48661d0d
commit 8edb75587e

View File

@@ -38,7 +38,7 @@ const notification = useNotification()
const router = useRouter()
const {
jwt, loading, openSettings, settings,
jwt, loading, openSettings,
showAddressCredential, userSettings, addressPassword
} = useGlobalState()
@@ -207,7 +207,6 @@ const newEmail = async () => {
);
jwt.value = res["jwt"];
addressPassword.value = res["password"] || '';
settings.value.address = res["address"] || '';
await api.getSettings();
await router.push(getRouterPathWithLang("/", locale.value));
showAddressCredential.value = true;