add:接口接入
This commit is contained in:
32
FrontCode2/sunshine_levy/src/views/pdf/pdf.vue
Normal file
32
FrontCode2/sunshine_levy/src/views/pdf/pdf.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div>
|
||||
<pdf :src="url"></pdf>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import pdf from 'vue-pdf';
|
||||
export default {
|
||||
components: {
|
||||
pdf,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
url: '',
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.onInit();
|
||||
console.log('pdf');
|
||||
},
|
||||
methods: {
|
||||
onInit() {
|
||||
this.onLoadData();
|
||||
},
|
||||
onLoadData() {
|
||||
console.log(this.$route.params);
|
||||
this.url = this.$route.params.url;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user