We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
页面内容
<template> <view class="login"> <mot-modal ref="ModalRef" id="ModalRef"></mot-modal> </view> </template> <script setup lang="ts"> const ModalRef = ref(); </script>
其他地方获取页面上面挂载的ref
var pages = getCurrentPages(); var page = pages[pages.length - 1]; console.log('当前页面', page.$vm?.$refs);
结果:微信和h5可以获取到,支付宝在页面实例上面没有挂载refs导致获取不到 源码分析 支付宝未获取当前页面ref挂载上去 微信源码: 支付宝源码
The text was updated successfully, but these errors were encountered:
No branches or pull requests
页面内容
其他地方获取页面上面挂载的ref
结果:微信和h5可以获取到,支付宝在页面实例上面没有挂载refs导致获取不到

源码分析
支付宝未获取当前页面ref挂载上去
微信源码:
支付宝源码
The text was updated successfully, but these errors were encountered: