Update readme & blurPageBeforeLogin to the beta branch.
Some checks are pending
Build and Push Beta Image / build-and-push (push) Waiting to run

This commit is contained in:
yuanhau 2025-06-11 00:14:25 +08:00
parent b20ab31b35
commit 2ae5f83a90
3 changed files with 28 additions and 174 deletions

View file

@ -7,6 +7,16 @@ const error = ref(false);
const errorMsg = ref("");
const emit = defineEmits(["windowopener", "error", "loadValue"]);
/**
* return {
userAccount: fetchViaSQL[0].username,
firstName: fetchViaSQL[0].firstName,
requested_action: "CONTINUE",
current_spot: "KEEP_LOGIN",
email: fetchViaSQL[0].email,
avatarURL: fetchViaSQL[0].avatarurl,
};
*/
try {
// await :(
const { data, error: sendError } = await useFetch(
@ -18,10 +28,12 @@ try {
if (data.requested_action === "LOGOUT_USER") {
logoutUser();
}
if (false) {
allowed.value = true;
} else {
allowed.value = false;
if (data.requested_action === "CONTIUNE") {
if (data.userAccount.length !== 0) {
allowed.value = true;
} else {
allowed.value = false;
}
}
} catch (e) {
error.value = true;
@ -35,7 +47,6 @@ try {
>
<div v-if="!allowed && !error" class="m-2">
{{ t("error") }}
<button>Update</button>
</div>
<div v-if="error" class="m-2">
<span>{{ errorMsg ? errorMsg : "" }} {{ t("systemerror") }}</span>