init
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<!-- 网页加载 -->
|
||||
<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>
|
||||
Reference in New Issue
Block a user