hbuildx创建一个uniapp选择默认模版 直接上代码
修改 page/index/index.vue文件,把web-view 标签的src属性换成你的应用的访问路径
<template>
<view class="content">
<web-view :webview-styles="webviewStyles" src=""></web-view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {},
methods: {}
}
</script>
<style>
.webviewStyles{
height: 100vh !important;
}
.content {
height: 100vh !important;<