1***@163.com
1***@163.com
  • 发布:2023-12-11 19:21
  • 更新:2023-12-13 21:42
  • 阅读:143

安卓webview切到后台再切回来 页面会刷新

分类:uni-app

安卓nvue写的webview页面 在应用切到后台并操作其他APP之后 再切回来导致页面刷新

2023-12-11 19:21 负责人:无 分享
已邀请:
喜欢技术的前端

喜欢技术的前端 - QQ---445849201

刚写了个页面,没有发现问题,可能是web-view url 对应的网站 有什么机制

<template>  
    <view class="container">  
        <web-view class="web-view" :webview-styles="webviewStyles" src="https://ask.dcloud.net.cn/explore/"></web-view>  
    </view>  
</template>  

<script>  
    export default {  
        data() {  
            return {  
                webviewStyles: {  
                    progress: {  
                        color: '#FF3333'  
                    }  
                }  
            }  
        }  
    }  
</script>  

<style>  
    .container{  

    }  
    .web-view{  
        width: 750rpx;  
        height: 2000px;  
    }  

</style>  

要回复问题请先登录注册