添加页面
This commit is contained in:
16
src/pages/webview.vue
Normal file
16
src/pages/webview.vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import { onLoad } from "@dcloudio/uni-app";
|
||||
|
||||
const url = ref("");
|
||||
onLoad((options) => {
|
||||
url.value = decodeURIComponent(options.url);
|
||||
console.log(url.value);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<web-view :src="url"></web-view>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user