mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-25 10:09:48 +08:00
feat: UI: move account releated code to header.vue (#84)
This commit is contained in:
@@ -63,14 +63,18 @@ const getOpenSettings = async (message) => {
|
||||
}
|
||||
|
||||
const getSettings = async () => {
|
||||
if (typeof jwt.value != 'string' || jwt.value.trim() === '' || jwt.value === 'undefined') {
|
||||
return "";
|
||||
try {
|
||||
if (typeof jwt.value != 'string' || jwt.value.trim() === '' || jwt.value === 'undefined') {
|
||||
return "";
|
||||
}
|
||||
const res = await apiFetch("/api/settings");;
|
||||
settings.value = {
|
||||
address: res["address"],
|
||||
auto_reply: res["auto_reply"]
|
||||
};
|
||||
} finally {
|
||||
settings.value.fetched = true;
|
||||
}
|
||||
const res = await apiFetch("/api/settings");;
|
||||
settings.value = {
|
||||
address: res["address"],
|
||||
auto_reply: res["auto_reply"]
|
||||
};
|
||||
}
|
||||
|
||||
const adminShowPassword = async (id) => {
|
||||
|
||||
Reference in New Issue
Block a user