docs: annotate all shared frontend modules in Chinese

This commit is contained in:
cieanyau committed 2026-11-06 00:30:15 +08:00
1 parent 2be21c1c62
commit 408f8e5c98
55 files changed
+349

No files matched your search

+3
View File
@@ -1,3 +1,4 @@
/** 公共站点配置:全应用共享成功结果和在途请求,失败可重试,页面错误文案各自维护。 */
import { ref } from "vue";
import { computed } from "vue";
import { useState } from "#app";
@@ -6,6 +7,7 @@ var i = null;
function a() {
let a = useState(`site-config`, () => null),
o = ref(``);
// /common 控制验证码、充值、资料锁定等前端入口;这些开关不替代后端权限校验。
async function s() {
if (((o.value = ``), a.value)) return a.value;
i ||= useApi()
@@ -25,6 +27,7 @@ function a() {
);
}
}
// 后端开关可能是布尔、数字或字符串,仅把明确的 1/true 当成开启。
let c = (e) => e === 1 || e === `1` || e === !0;
return {
config: a,