URLView.vue 310 B

123456789101112131415161718
  1. <template>
  2. <view>
  3. <web-view :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script setup lang="ts">
  7. import { onLoad } from '@dcloudio/uni-app';
  8. import { ref } from 'vue';
  9. onLoad((options) => {
  10. url.value = decodeURIComponent(options.url)
  11. });
  12. const url = ref('');
  13. </script>
  14. <style lang="scss">
  15. </style>