index.vue 243 B

12345678910111213141516171819
  1. <template>
  2. <web-view :src="fileUrl"></web-view>
  3. </template>
  4. <script>
  5. import {
  6. getDownloadUrl
  7. } from '@/api/common'
  8. export default {
  9. data() {
  10. return {
  11. fileUrl: ''
  12. }
  13. },
  14. onLoad(e) {
  15. this.fileUrl = e.data
  16. }
  17. }
  18. </script>