usehooks
usehooks
  • 发布:2023-06-09 10:00
  • 更新:2023-06-09 10:00
  • 阅读:92

【报Bug】返回有bug

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 3.8.4.20230531

HBuilderX类型: 正式

HBuilderX版本号: 3.8.4

浏览器平台: Edge

浏览器版本: 版本 114.0.1823.41 (正式版本) (arm64)

项目创建方式: HBuilderX

示例代码:

<script setup>  
</script>  
<template>  
    <video id="myVideo" src="/static/video/video1.mp4"  
           loop  
           autoplay page-gesture  
           enable-danmu  controls></video>  
</template>  

<style lang="scss">  
uni-video{  
    width: 100%;  
}  
</style>

操作步骤:

uni-h5.es.js:15430 Uncaught TypeError: Cannot read properties of undefined (reading '$page')
at removeCurrentPages (uni-h5.es.js:15430:26)
at uni-h5.es.js:15442:7
at vue-router.mjs?v=65f46d44:414:13
at Array.forEach (<anonymous>)
at popStateHandler (vue-router.mjs?v=65f46d44:413:19)

预期结果:

<script setup>  
</script>  
<template>  
    <video id="myVideo" src="/static/video/video1.mp4"  
           loop  
           autoplay page-gesture  
           enable-danmu  controls></video>  
</template>  

<style lang="scss">  
uni-video{  
    width: 100%;  
}  
</style>

实际结果:

<script setup>  
</script>  
<template>  
    <video id="myVideo" src="/static/video/video1.mp4"  
           loop  
           autoplay page-gesture  
           enable-danmu  controls></video>  
</template>  

<style lang="scss">  
uni-video{  
    width: 100%;  
}  
</style>

实际效果想要的是,当我点击到上面代码的页面的时候,没有报上面截图的问题

bug描述:

当我点击系统自带的返回到上一级时,第一次没有报 下面截图的错误 ,从第二次开始返回,就开始出现 截图中的问题,详情得刷新才能正常

2023-06-09 10:00 负责人:无 分享
已邀请:

要回复问题请先登录注册