feat: 联调登录+对话

This commit is contained in:
王天骄
2026-06-05 15:27:29 +08:00
parent 69c6a2969c
commit d962ab98f5
55 changed files with 526 additions and 93 deletions
+19
View File
@@ -0,0 +1,19 @@
import { getCurrentInstance } from 'vue'
type OpenProfileEmit = (event: 'open-profile') => void
export function createProfileOpener(emit: OpenProfileEmit) {
const instance = getCurrentInstance()
const hasOpenProfileListener = Boolean(instance?.vnode.props?.onOpenProfile)
return function openProfile() {
if (hasOpenProfileListener) {
emit('open-profile')
return
}
uni.navigateTo({
url: '/pages/profile/profile'
})
}
}