<script setup>
import {
reactive,
getCurrentInstance,
ref
} from 'vue'
import {
onReady,
onLoad,
onUnload,
onHide
} from "@dcloudio/uni-app"
const {
proxy
} = getCurrentInstance()
let Tucao = requirePlugin('tucao').default;
onLoad((option) => {
let userInfo = uni.getStorageSync('userInfo');
console.log(userInfo)
let userName = ''
if (userInfo.image) {
userName = userInfo.name
}
let userImage = ''
if (userInfo.image_logo) {
userImage = userInfo.image_logo
}
console.log('userInfo.value.openid')
console.log(userInfo.openid)
// 初始化并触发跳转,支持链式调用
Tucao.init(proxy, {
productId: 我的产品ID,
avatar: userImage,
nickname: userName,
openid: userInfo.openid
}).go();
})
</script>
报错信息:Cannot read property 'navigateTo' of undefined
兔小巢的插件,调用go方法后内部提示没有navigateTo方法呢
你提供代码中没有看到navigateTo调用
请去对应的第三方社区询问