uni-app 【报Bug】vue3 page-meta 无法使用,直接报错 TypeError: this.$pageVm.$on is not a function

uni-app 【报Bug】vue3 page-meta 无法使用,直接报错 TypeError: this.$pageVm.$on is not a function

开发环境 版本号 项目创建方式
Mac 10.15.3 HBuilderX
# 测试过的手机:
iphonex oppo

## 示例代码:

```html
<template>
<page-meta root-font-size="9.2666666px"></page-meta>  
</template>  

<script>
export default {
data() {
return {
title: 'Hello'
}
},
methods: {
clickHello() {
uni.navigateTo({url: '/pages/hello/hello?index=1'});
}
},
onLoad() {
// plus.navigator.closeSplashscreen();
}
}
</script>  

<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.logo {  
height: 200rpx;  
width: 200rpx;  
margin-top: 200rpx;  
margin-left: auto;  
margin-right: auto;  
margin-bottom: 50rpx;  
}  

.text-area {  
display: flex;  
justify-content: center;  
}  

.title {  
font-size: 36rpx;  
color: #8f8f94;  
}  
</style>  

操作步骤:

3.2.9版本vue3 使用 page-meta 无效直接报错 11:14:52.537 TypeError: this.$pageVm.$on is not a function
vue2 可以正常使用,
vue2 与 vue3 代码一致

预期结果:

可正常使用 page-meta 功能

实际结果:

vue3 中无法正常使用


更多关于uni-app 【报Bug】vue3 page-meta 无法使用,直接报错 TypeError: this.$pageVm.$on is not a function的实战教程也可以访问 https://www.itying.com/category-93-b0.html

3 回复

问题已记录,后续优化,已加分,感谢您的反馈!

更多关于uni-app 【报Bug】vue3 page-meta 无法使用,直接报错 TypeError: this.$pageVm.$on is not a function的实战教程也可以访问 https://www.itying.com/category-93-b0.html


问题仍然存在

hx 3.3.3, app h5 验证没有问题,hx版本多少?提供测试代码

回到顶部