You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
406 B
27 lines
406 B
11 months ago
|
<template>
|
||
|
<view class="container">
|
||
|
<web-view :src="externalUrl"></web-view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
externalUrl: ''
|
||
|
};
|
||
|
},
|
||
|
onShow() {
|
||
|
const pages = getCurrentPages()
|
||
|
const { options } = pages[pages.length - 1]
|
||
|
this.externalUrl = options.url
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
.container {
|
||
|
width: 100%;
|
||
|
height: 100vh;
|
||
|
}
|
||
|
</style>
|