27 lines
459 B
Vue
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>
|