PrintImage.vue
561 Bytes
<template>
<div>
<img :src="imgBase64" />
</div>
</template>
<script>
import { getBpmImage } from '@/api/flow.js'
export default {
props: {
instId: {
type: String,
default: '',
},
defId: {
type: String,
default: '',
},
},
data() {
return {
imgBase64: '',
}
},
mounted() {
const this_ = this
getBpmImage('', this.instId, this.defId, (res) => {
this_.imgBase64 = res
})
},
}
</script>
<style lang="scss" scoped></style>