更新密码找回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

-12
View File
@@ -23,14 +23,6 @@
<script setup>
import { computed } from 'vue'
/**
* 底部 tabbar。
*
* variant = 'route':独立页模式。每个子系统(crm / erp / oa / cms / toolbox)有独立的页面组,
* 通过 group(子系统目录名)解析路由并 redirectTo 跳转;导航页 nav.vue 不使用本组件。
* variant = 'switch':页内模式。用于 pages/sub/tabs.vue,切换时只 emit change 由父页控制
* 内容区显隐,避免页面栈堆积、保留各页签状态;tabs 可由父页传入。
*/
const props = defineProps({
group: {
type: String,
@@ -56,15 +48,12 @@ const DEFAULT_TABS = [
{ name: 'home', text: '概览', icon: 'gauge' },
{ name: 'functions', text: '功能', icon: 'table-cells' },
{ name: 'todo', text: '待办', icon: 'circle-check' },
// 末位不再是「我的」,而是回平台(模块选择页);name 保留 mine 以兼容 current="mine"
{ name: 'mine', text: '回平台', icon: 'arrow-left' }
]
const list = computed(() => (props.tabs && props.tabs.length ? props.tabs : DEFAULT_TABS))
function onTap(name) {
// 「回平台」:清空页面栈回到模块选择页。必须放在 current 判重之前,
// 否则停在原「我的」页时点击会被判重拦下。
if (name === 'mine' || name === 'platform') {
uni.reLaunch({ url: '/pages/nav/nav' })
return
@@ -74,7 +63,6 @@ function onTap(name) {
emit('change', name)
return
}
// 子系统内部页面与 tab 一一对应,用 redirectTo 避免页面栈堆积
uni.redirectTo({ url: `/pages/${props.group}/${name}/${name}` })
}
</script>