docs: annotate all shared frontend modules in Chinese
This commit is contained in:
1 parent
2be21c1c62
commit
408f8e5c98
55 files changed
+349
No files matched your search
@@ -1,3 +1,5 @@
|
||||
/** 跨供应商规格展示适配;只统一显示标签与区域信息,不改写可提交的商品配置。 */
|
||||
// 类型码优先识别区域/系统,其余按现有中文同义词归一,未知名称保留。
|
||||
function e(e, t) {
|
||||
let n = typeof e == `string` ? e.trim() : ``;
|
||||
return t === `area` || Number(t) === 12
|
||||
@@ -24,6 +26,7 @@ function t(e) {
|
||||
? `VPC 网络`
|
||||
: t;
|
||||
}
|
||||
// 部分接口将配置包成 JSON 字符串;格式错误或数组不能当成配置对象使用。
|
||||
function n(e) {
|
||||
if (typeof e == `string`)
|
||||
try {
|
||||
@@ -36,6 +39,7 @@ function n(e) {
|
||||
function r(e) {
|
||||
return typeof e == `string` ? e.trim() : ``;
|
||||
}
|
||||
/** i 为模块名,a/o 为优先和后备配置;按模块字段差异提取 region/line/networkType。 */
|
||||
function i(i, a, o) {
|
||||
let s = n(a),
|
||||
c = n(o),
|
||||
|
||||
Reference in new issue
Block a user