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
460 B
29 lines
460 B
4 months ago
|
//PageWebview.vue
|
||
|
<template>
|
||
|
<web-view v-if='src' :src='src' @message='message'></web-view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
src: "",
|
||
|
};
|
||
|
},
|
||
|
onLoad(options) {
|
||
|
options.src = decodeURIComponent(options.src);
|
||
|
setTimeout(() => {
|
||
|
this.src = `${options.src}`;
|
||
|
}, 500);
|
||
|
},
|
||
|
methods: {
|
||
|
message(e) {
|
||
|
console.log(message, 'webView----message')
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
</style>
|