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