Commit 31269fa9 by qlintonger xeno

尝试添加截图标注+3

parent eef8cf10
...@@ -128,6 +128,8 @@ const props = defineProps({ ...@@ -128,6 +128,8 @@ const props = defineProps({
default: true default: true
} }
}) })
import {nextTick} from 'vue'
const emits = defineEmits(['done', 'cancel', 'first-paint-done', 'canvas-saved']) const emits = defineEmits(['done', 'cancel', 'first-paint-done', 'canvas-saved'])
// 如果是由外部bridge打开,同样需要显示 // 如果是由外部bridge打开,同样需要显示
...@@ -381,7 +383,8 @@ let longQueueHandle = function () { ...@@ -381,7 +383,8 @@ let longQueueHandle = function () {
}) })
} }
let pullUntilMounted = setInterval(() => { nextTick(function() {
let pullUntilMounted = setInterval(() => {
props.callBridge('进入元素查找') props.callBridge('进入元素查找')
if (!canvasWrapper.value) return; if (!canvasWrapper.value) return;
props.callBridge('找到canvas元素') props.callBridge('找到canvas元素')
...@@ -391,7 +394,8 @@ let pullUntilMounted = setInterval(() => { ...@@ -391,7 +394,8 @@ let pullUntilMounted = setInterval(() => {
props.callBridge('元素几何数据成功获取') props.callBridge('元素几何数据成功获取')
clearInterval(pullUntilMounted) clearInterval(pullUntilMounted)
longQueueHandle() longQueueHandle()
}, 0) }, 0)
})
</script> </script>
<style> <style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment