添加页面

This commit is contained in:
kron
2025-09-03 16:37:49 +08:00
parent 1f15183fc4
commit 9b2ba22b97
5 changed files with 135 additions and 5 deletions

16
src/pages/webview.vue Normal file
View 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>