webView.vue 378 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <web-view :src="src" v-if="src"></web-view>
  3. </template>
  4. <script>
  5. export default {
  6. data(){
  7. return {
  8. src:''
  9. }
  10. },
  11. onLoad(options) {
  12. try {
  13. this.src = decodeURIComponent(options.src || '');
  14. } catch (error) {
  15. this.src = options.src || '';
  16. }
  17. },
  18. methods:{
  19. }
  20. }
  21. </script>
  22. <style scoped lang="less">
  23. </style>