docs: annotate account commerce finance and content pages

This commit is contained in:
cieanyau committed 2026-11-06 00:29:13 +08:00
1 parent 60827b8bfb
commit 2be21c1c62
24 files changed
+223

No files matched your search

+6
View File
@@ -1,4 +1,7 @@
<script>
/**
* 资源中心:帮助、新闻和公告的可访问标签容器;支持 section 参数和后端 plugin 参数,参数解析完成后再挂载对应内容页。
*/
import "~/assets/styles/notices.BXNGOj-Q.css";
import "~/assets/styles/news.CbIzdrjt.css";
import "~/assets/styles/help.BSOB30LE.css";
@@ -79,6 +82,7 @@ var j = {
},
],
H = 0;
// 优先解析 section;只有 plugin 入口才读取插件清单,并用请求代次隔离连续路由切换。
async function U() {
let e = ++H;
((z.value = ``), (R.value = null), (B.value = !0));
@@ -98,6 +102,7 @@ var j = {
e === H && (B.value = !1);
}
}
// 切换分类同时写入 /resources 的 section 查询参数,保持刷新与分享地址可恢复。
function W(e) {
((R.value = e),
I.push({
@@ -112,6 +117,7 @@ var j = {
onBeforeUnmount(() => {
H++;
}));
// 标签按左右方向键循环切换,Home/End 跳至首尾,并同步焦点到新标签。
function G(e, t) {
let n = t;
if (e.key === `ArrowRight`) n = (t + 1) % V.length;