hn-hlw-app/pages/webview/webview.vue

21 lines
419 B
Vue
Raw Normal View History

2026-07-27 11:26:39 +08:00
<template>
<web-view v-if="url" :src="url" />
</template>
<script setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
const url = ref('');
onLoad((options) => {
if (options.url) {
url.value = decodeURIComponent(options.url);
console.log(url.value)
}
if (options.title) {
uni.setNavigationBarTitle({
title: decodeURIComponent(options.title)
});
}
});
</script>