【WebView 界面】
1. 整理代码
This commit is contained in:
1 parent
828505c2dd
commit
dcae130b4a
1 file changed
+4
-7
@@ -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
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user