更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -4,17 +4,11 @@ export interface SectionConfig {
|
||||
key: SectionKey;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
/** 列表页路径 */
|
||||
basePath: string;
|
||||
/** 详情页路径前缀 */
|
||||
detailPath: string;
|
||||
/** 分类页路径前缀 */
|
||||
categoryPath: string;
|
||||
/** 计数单位 */
|
||||
unit: string;
|
||||
/** 列表布局:list = 横向大卡;grid = 竖向卡片网格 */
|
||||
layout: "list" | "grid";
|
||||
/** 是否提供关键字搜索 */
|
||||
searchable: boolean;
|
||||
categories: Category[];
|
||||
}
|
||||
@@ -105,13 +99,11 @@ export const sections: Record<SectionKey, SectionConfig> = {
|
||||
},
|
||||
};
|
||||
|
||||
/** 从路由路径推断栏目:/news/detail/xxx -> news */
|
||||
export function sectionFromPath(path: string): SectionConfig | undefined {
|
||||
const first = path.split("/").filter(Boolean)[0];
|
||||
return first && first in sections ? sections[first as SectionKey] : undefined;
|
||||
}
|
||||
|
||||
/** 查询某个分类的展示名 */
|
||||
export function categoryName(
|
||||
section: SectionKey,
|
||||
slug: string | undefined
|
||||
|
||||
Reference in new issue
Block a user