You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
484 B

<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>