|
|
@@ -2,10 +2,12 @@
|
|
|
import { ref, onMounted, watchEffect } from 'vue'
|
|
|
import Loading from '@/components/loading.uvue'
|
|
|
import { router } from '@/.cool'
|
|
|
+const progress = ref(1)
|
|
|
const webviewSrc = ref('')
|
|
|
var isLoading = ref(true)
|
|
|
onMounted(() => {
|
|
|
webviewSrc.value = router.query().src
|
|
|
+ progress.value = router.query().progress
|
|
|
})
|
|
|
function handleMessage(e) {
|
|
|
var pages = getCurrentPages();
|
|
|
@@ -24,7 +26,6 @@ onShow(() => {
|
|
|
</script>
|
|
|
<template>
|
|
|
<Loading v-show="isLoading" />
|
|
|
- <web-view :src="webviewSrc + '?' + Math.random()" class="w-full h-full" @message="handleMessage"
|
|
|
- @load="handleLoad"></web-view>
|
|
|
+ <web-view :src="webviewSrc" class="w-full h-full" @message="handleMessage" @load="handleLoad"></web-view>
|
|
|
</template>
|
|
|
<style lang="less" scoped></style>
|