mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Update readme & blurPageBeforeLogin to the beta branch.
Some checks are pending
Build and Push Beta Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Beta Image / build-and-push (push) Waiting to run
This commit is contained in:
parent
b20ab31b35
commit
2ae5f83a90
3 changed files with 28 additions and 174 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue