28 lines
423 B
Vue
28 lines
423 B
Vue
<template>
|
|
<pdf-view>
|
|
<web-view :src="url"></web-view>
|
|
</pdf-view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
path: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
url: ''
|
|
}
|
|
},
|
|
mounted() {
|
|
this.url = '/static/jsFile/readPdf.html?pdfUrl=' + this.path
|
|
console.log('🚀 ~ mounted ~ this.url:', this.url)
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped></style>
|