web_view.vue 300 B

123456789101112131415161718192021
  1. <template>
  2. <web-view :src="src"></web-view>
  3. </template>
  4. <script>
  5. export default {
  6. data() {
  7. return {
  8. src: ''
  9. }
  10. },
  11. onLoad(options) {
  12. console.log(options);
  13. this.src = decodeURIComponent(options.src)
  14. console.log(this.src);
  15. }
  16. }
  17. </script>
  18. <style lang="scss" scoped>
  19. </style>