同步代码
This commit is contained in:
21
pages/webview/webview.vue
Normal file
21
pages/webview/webview.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<web-view class="view" :src="webUrl"></web-view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
|
||||
const webUrl = ref('');
|
||||
|
||||
onLoad((options) => {
|
||||
webUrl.value = options.url;
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.view {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user