【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>
<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>
<script>
import {
mapGetters
} from "vuex";
export default {
//computed: mapGetters(['chatUrl']),
data() {
return {
windowH: 0,
@ -21,7 +16,9 @@
}
},
onLoad(option) {
if(option.webUel) this.url = option.webUel;
if (option.webUel) {
this.url = option.webUel;
}
uni.setNavigationBarTitle({
title: option.title
})