Files
kangyuan-mobile/pages/public/webview.vue
T
2026-05-26 15:52:30 +08:00

27 lines
459 B
Vue

<!-- 网页加载 -->
<template>
<s-layout :title="title" />
<iframe :src="url" frameborder="0" class="iframe" />
</template>
<script setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
const url = ref();
const title = ref();
onLoad((e) => {
url.value = e.url;
title.value = e.title;
console.log(e);
});
</script>
<style lang="scss" scoped>
.iframe {
width: 100%;
height: 100%;
}
</style>