mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-11 04:39:35 +08:00
31 lines
525 B
Vue
31 lines
525 B
Vue
<template>
|
|
<view class="app-page">
|
|
<web-view :src="webUrl"></web-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
title: '',
|
|
webUrl: ''
|
|
};
|
|
},
|
|
onLoad(e) {
|
|
const {title, url} = JSON.parse(e.data);
|
|
this.webUrl = decodeURIComponent(url);
|
|
console.log("webUrl" + this.webUrl)
|
|
if (title) {
|
|
this.fnSetPageTitle(title);
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style scoped>
|
|
.app-page {
|
|
width: 100vw;
|
|
}
|
|
</style>
|