You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122
  1. <template>
  2. <web-view :src="state.url" @message="back"></web-view>
  3. </template>
  4. <script setup>
  5. import {onLoad} from "@dcloudio/uni-app";
  6. import {reactive} from "vue";
  7. const state = reactive({
  8. url:""
  9. })
  10. onLoad((option) => {
  11. console.log("option",option)
  12. state.url=option.url
  13. });
  14. const back=()=>{
  15. console.log("back")
  16. }
  17. </script>
  18. <style>
  19. </style>