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.
31 lines
448 B
31 lines
448 B
<template>
|
|
<web-view :src="url"></web-view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
url: ''
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
// #ifdef H5
|
|
if (option.url) {
|
|
let url = decodeURIComponent(option.url)
|
|
window.location.replace(url)
|
|
}
|
|
// #endif
|
|
|
|
// #ifdef MP-WEIXIN
|
|
if (option.url) {
|
|
this.url = decodeURIComponent(option.url)
|
|
}
|
|
// #endif
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style>
|