docs: annotate account commerce finance and content pages
This commit is contained in:
1 parent
60827b8bfb
commit
2be21c1c62
24 files changed
+223
No files matched your search
@@ -1,4 +1,7 @@
|
||||
<script>
|
||||
/**
|
||||
* 帮助中心:支持独立文章路由和资源中心嵌入模式;目录与文章分别加载,通过请求序号防止快速切换文章时出现旧正文。
|
||||
*/
|
||||
import "~/assets/styles/help.BSOB30LE.css";
|
||||
definePageMeta({
|
||||
scrollToTop: !0,
|
||||
@@ -157,11 +160,13 @@ var me = {
|
||||
L.value.find((e) => e.helps?.some((e) => e.id === q.value))
|
||||
?.name ?? ``,
|
||||
);
|
||||
// 嵌入模式使用资源中心地址,独立模式使用帮助文章地址,链接统一保留文章 ID。
|
||||
function Ce(e) {
|
||||
return x?.embedded
|
||||
? `/resources?section=help&id=${e}`
|
||||
: `/help/article?id=${e}`;
|
||||
}
|
||||
// 从路由校验文章 ID;未明确指定文章时选择目录首篇,无效编号不继续请求详情。
|
||||
async function Z() {
|
||||
if (X) return;
|
||||
let e = F.query.id !== void 0 || F.path === `/help/article`,
|
||||
@@ -183,6 +188,7 @@ var me = {
|
||||
(K.value = !1),
|
||||
(z.value = ``));
|
||||
}
|
||||
// 加载帮助目录后再解析当前文章;目录请求代次与文章请求代次互相独立。
|
||||
async function Q() {
|
||||
let e = ++Y;
|
||||
((R.value = !0), (B.value = ``));
|
||||
@@ -198,6 +204,7 @@ var me = {
|
||||
}
|
||||
!X && e === Y && (await Z());
|
||||
}
|
||||
// 每次切换文章先清除旧正文,再读取详情;仅当前请求且页面仍存活时更新状态。
|
||||
async function $(e) {
|
||||
let t = ++J;
|
||||
((q.value = e), (K.value = !0), (W.value = null), (z.value = ``));
|
||||
|
||||
Reference in new issue
Block a user