【WebView 界面】

1. 整理代码
pull/1/MERGE
YunaiV 2023-06-27 00:36:49 +08:00
parent 828505c2dd
commit dcae130b4a
1 changed files with 4 additions and 7 deletions

View File

@ -1,13 +1,8 @@
<template> <template>
<web-view class="web-view" :webview-styles="webviewStyles" :src="url" :style="{width: windowW + 'px', height: windowH + 'px'}"></web-view> <web-view class="web-view" :webview-styles="webviewStyles" :src="url" :style="{width: windowW + 'px', height: windowH + 'px'}" />
</template> </template>
<script> <script>
import {
mapGetters
} from "vuex";
export default { export default {
//computed: mapGetters(['chatUrl']),
data() { data() {
return { return {
windowH: 0, windowH: 0,
@ -21,7 +16,9 @@
} }
}, },
onLoad(option) { onLoad(option) {
if(option.webUel) this.url = option.webUel; if (option.webUel) {
this.url = option.webUel;
}
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: option.title title: option.title
}) })