File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/client/src/components/common Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ onMounted(() => {
2323 if (iframeCacheMap .get (key .value )) {
2424 iframeEl .value = iframeCacheMap .get (key .value )!
2525 iframeEl .value .style .visibility = ' visible'
26+ iframeEl .value .style .opacity = ' 1'
2627 iframeLoaded .value = true
2728 }
2829 else {
@@ -59,14 +60,17 @@ watchEffect(updateIframeBox)
5960watchEffect (syncColorMode )
6061
6162onUnmounted (() => {
62- if (iframeEl .value )
63+ if (iframeEl .value ) {
6364 iframeEl .value .style .visibility = ' hidden'
65+ iframeEl .value .style .opacity = ' 0'
66+ }
6467})
6568
6669function resolveConflictVisible() {
6770 if (! iframeEl .value )
6871 return
6972 iframeEl .value .style .visibility = ' visible'
73+ iframeEl .value .style .opacity = ' 1'
7074}
7175
7276function syncColorMode() {
You can’t perform that action at this time.
0 commit comments