docs: explain dashboard panels data and display boundaries
This commit is contained in:
1 parent
631fe30012
commit
145d04e9db
9 files changed
+39
No files matched your search
@@ -1,4 +1,8 @@
|
||||
<script>
|
||||
/**
|
||||
* 首页公告:最多 5 条,详情弹窗另行请求正文。列表与详情序号独立,卸载后废弃旧响应。
|
||||
* 刷新失败保留旧列表但禁止交互,避免把旧内容当作最新成功结果。
|
||||
*/
|
||||
import "~/assets/styles/HomeNoticePanel.e5-qgzAs.css";
|
||||
import { toDisplayString } from "vue";
|
||||
import { renderList } from "vue";
|
||||
@@ -76,6 +80,7 @@ var O = [`aria-busy`],
|
||||
Y = ref(``),
|
||||
X = ref(null),
|
||||
Z = 0;
|
||||
// 互斥加载;已加载标记区分首次失败与刷新失败,后者保留原数据并提供重试。
|
||||
async function Q() {
|
||||
if (W) return;
|
||||
let e = ++G;
|
||||
@@ -98,6 +103,7 @@ var O = [`aria-busy`],
|
||||
onBeforeUnmount(() => {
|
||||
(G++, Z++);
|
||||
}));
|
||||
// 切换详情先清空旧正文,再按最新请求序号接纳结果;已删除公告明确报错。
|
||||
async function $(e) {
|
||||
let t = ++Z;
|
||||
((K.value = !0),
|
||||
@@ -118,6 +124,7 @@ var O = [`aria-busy`],
|
||||
t === Z && (J.value = !1);
|
||||
}
|
||||
}
|
||||
// 正文经过公共 sanitizeHtml 清理再注入;列表出错时 inert 关闭旧条目交互。
|
||||
return (n, r) => {
|
||||
let a = NuxtLink,
|
||||
m = button,
|
||||
|
||||
Reference in new issue
Block a user