reportDetail.vue 451 B

123456789101112131415161718192021
  1. <template>
  2. <web-view :src="url"></web-view>
  3. </template>
  4. <script>
  5. export default {
  6. data () {
  7. return {
  8. url:""
  9. }
  10. },
  11. onLoad(options){
  12. const eventChannel = this.getOpenerEventChannel()
  13. eventChannel.on('webUrl', (data)=> {
  14. const timestamp=new Date().getTime()
  15. this.url=`${data.url}&token=${this.$store.state.user.token}&timestamp=${timestamp}`
  16. })
  17. }
  18. }
  19. </script>