web-view.uvue 534 B

12345678910111213141516171819
  1. <script setup lang='ts'>
  2. import { ref, onMounted, watchEffect } from 'vue'
  3. import Loading from '@/components/loading.uvue'
  4. import { router } from '@/.cool'
  5. import Back from '@/components/back.uvue'
  6. const webviewSrc = ref('')
  7. var isLoading = ref(true)
  8. function handleLoad() {
  9. isLoading.value = false
  10. }
  11. </script>
  12. <template>
  13. <Loading v-show="isLoading" />
  14. <web-view src="https://oss.xiaoxiongcode.com/scratch-gui/index.html" class="w-full h-full"
  15. @load="handleLoad"></web-view>
  16. </template>
  17. <style lang="less" scoped></style>