webview.vue
380 Bytes
<template>
<view>
<web-view :src="config.baseUrl_api + downloadUrl"></web-view>
</view>
</template>
<script setup>
import {ref} from 'vue'
import {onLoad} from '@dcloudio/uni-app'
import config from '@/config.js'
const downloadUrl = ref('')
onLoad(option => {
downloadUrl.value = option.downloadUrl
})
</script>
<style scoped lang="scss">
</style>