This commit is contained in:
hero920103 committed 2026-11-03 11:13:59 +08:00
1 parent 012f8edf8b
commit 36ff960fbd
33 files changed
+1644 -344

No files matched your search

+3 -6
View File
@@ -62,7 +62,6 @@ import { mpHeadPad } from '@/utils/mpHead.js'
const headPad = mpHeadPad()
import { onShow } from '@dcloudio/uni-app'
import { isLoggedIn } from '@/utils/auth.js'
import { openMenu, WEB_RULES } from '@/utils/nav.js'
import { useSubsystem } from '@/utils/subsystem.js'
import AppTabbar from '@/components/AppTabbar.vue'
@@ -173,15 +172,13 @@ function goBackNav() {
}
onMounted(() => {
if (!isLoggedIn()) {
uni.reLaunch({ url: '/pages/login/login' })
return
}
// 菜单:登录走 /api/home,游客走公开免登录菜单(菜单级 require_login 控制),
// 无免登录菜单的子系统游客看到空列表,不强制跳登录
load()
})
onShow(() => {
if (isLoggedIn() && !loading.value) load()
if (!loading.value) load()
})
</script>