31 lines
483 B
Vue
Raw Permalink Normal View History

2025-06-30 09:38:03 +08:00
<template>
<view>
<web-view :src="fileUrl"></web-view>
</view>
</template>
<script>
import {
getDownloadUrl
} from '@/api/common'
export default {
data() {
return {
fileUrl: ''
}
},
onLoad(e) {
uni.setNavigationBarTitle({
title: e.name
})
this.getFileUrl(e.fileId)
},
methods: {
getFileUrl(fileId) {
getDownloadUrl('workFlow', fileId).then(res => {
this.fileUrl = this.define.baseURL + res.data.url;
})
}
}
}
</script>