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.

29 lines
397 B

5 days ago
<template>
<view v-if="params.url">
<web-view :src="`${params.url}`"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
params: {}
}
},
props: {
src: {
type: [String],
default: null
}
},
onLoad(event) {
this.params = event
if (event.title) {
uni.setNavigationBarTitle({
title: event.title
})
}
}
}
</script>