|
@@ -66,6 +66,7 @@ const props = defineProps({
|
|
|
// 定义发射给父组件的方法
|
|
|
const emits = defineEmits([
|
|
|
'callbackProcessUpdate',
|
|
|
+ 'callbackScreenshot',
|
|
|
])
|
|
|
|
|
|
/**
|
|
@@ -76,6 +77,14 @@ const callbackProcessUpdateEvent = (db) => {
|
|
|
emits('callbackProcessUpdate', db);
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 截图回调逻辑
|
|
|
+ * base64Str
|
|
|
+ */
|
|
|
+const callbackScreenshotEvent = (base64Str) => {
|
|
|
+ emits('callbackScreenshot', base64Str);
|
|
|
+}
|
|
|
+
|
|
|
watch(
|
|
|
() => QvMyThreeWorldStore().loadSuccess,
|
|
|
(newVal, oldVal) => {
|
|
@@ -221,7 +230,8 @@ const ProcessInit = () => {
|
|
|
|
|
|
// 截图逻辑
|
|
|
QvEvent.find().callbackScreenshot = function(base64Str) {
|
|
|
- console.log("callbackScreenshot", base64Str);
|
|
|
+ // console.log("callbackScreenshot", base64Str);
|
|
|
+ callbackScreenshotEvent(base64Str);
|
|
|
}
|
|
|
|
|
|
}
|