您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

webView.vue 362B

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>