17 lines
354 B
Vue
Raw Permalink Normal View History

2026-01-21 10:59:55 +08:00
<template>
<web-view v-if="src" :src="src">
</web-view>
</template>
<script setup>
import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'
const src = ref('')
onLoad((option) => {
src.value = decodeURIComponent(option.src || '');
uni.setNavigationBarTitle({
title: decodeURIComponent(option.title || '') || ''
})
})
</script>