fix: 去掉首页上的实现说明
This commit is contained in:
@@ -55,13 +55,13 @@ async function load() {
|
|||||||
const payload = await response.json().catch(() => ({}));
|
const payload = await response.json().catch(() => ({}));
|
||||||
if (current !== requestId) return;
|
if (current !== requestId) return;
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
errorText.value = typeof payload.detail === "string" ? payload.detail : "首页信息没有获取到,30 秒后会再试。";
|
errorText.value = typeof payload.detail === "string" ? payload.detail : "首页信息没有获取到。";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
errorText.value = "";
|
errorText.value = "";
|
||||||
profile.value = payload;
|
profile.value = payload;
|
||||||
} catch {
|
} catch {
|
||||||
if (current === requestId) errorText.value = "首页信息没有获取到,30 秒后会再试。";
|
if (current === requestId) errorText.value = "首页信息没有获取到。";
|
||||||
} finally {
|
} finally {
|
||||||
if (current === requestId) loading.value = false;
|
if (current === requestId) loading.value = false;
|
||||||
}
|
}
|
||||||
@@ -80,7 +80,6 @@ onUnmounted(() => window.clearInterval(timer));
|
|||||||
<header class="page-head">
|
<header class="page-head">
|
||||||
<div>
|
<div>
|
||||||
<h2>首页</h2>
|
<h2>首页</h2>
|
||||||
<p>个人信息每次进入和之后每 30 秒重新获取,不写入本地。</p>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<n-alert v-if="errorText && !profile" type="error">{{ errorText }}</n-alert>
|
<n-alert v-if="errorText && !profile" type="error">{{ errorText }}</n-alert>
|
||||||
|
|||||||
Reference in New Issue
Block a user