Files
RentWeAppFront/pages/webview/webview.vue

25 lines
420 B
Vue
Raw Normal View History

2025-11-14 11:39:33 +08:00
<template>
<view v-if="src">
<web-view :webview-styles="wbStyles" :src="src" :fullscreen="false" />
</view>
</template>
<script>
export default {
data() {
return {
title: '',
src: '',
wbStyles: {
width: '100%',
height: '100%',
},
}
},
onLoad(option) {
console.log(option.title);
this.title = option?.title
this.src = option?.src
},
}
</script>