webview.vue 311 B

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