更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-15
View File
@@ -1,12 +1,3 @@
/**
* 子系统注册表
*
* nav.vue(导航页,无 tabbar)按这里配置渲染子系统宫格;
* 点击卡片进入 pages/{slug}/home.vue,该子系统拥有自己的页面组与 tabbar。
*
* module 对应后端 yz_system_modules.code(菜单归属靠 path 前缀匹配),
* slug 是端上路由目录名,务必与 pages/{slug}/ 保持一致。
*/
export const SUBSYSTEMS = [
{
slug: 'crm',
@@ -55,21 +46,15 @@ export const SUBSYSTEMS = [
}
]
/** 按 slug 取子系统配置 */
export function getSubsystem(slug) {
return SUBSYSTEMS.find((s) => s.slug === slug) || null
}
/** 按后端模块 code 取子系统配置(menus[].module 与 yz_system_modules.code 对应) */
export function getSubsystemByModule(module) {
const key = String(module || '').toLowerCase()
return SUBSYSTEMS.find((s) => String(s.module).toLowerCase() === key) || null
}
/**
* 进入某子系统的概览页。
* 后端模块没有对应端上页面时(未在 SUBSYSTEMS 注册),返回 false 让调用方自行降级。
*/
export function goSubsystem(slug) {
if (!getSubsystem(slug)) return false
uni.navigateTo({ url: `/pages/sub/tabs?slug=${slug}` })