diff --git a/frontend/src/views/chat/chat-block/ChartBlock.vue b/frontend/src/views/chat/chat-block/ChartBlock.vue index a0553e8a3..a8d8c502d 100644 --- a/frontend/src/views/chat/chat-block/ChartBlock.vue +++ b/frontend/src/views/chat/chat-block/ChartBlock.vue @@ -63,6 +63,8 @@ const dataObject = computed<{ const assistantStore = useAssistantStore() const isCompletePage = computed(() => !assistantStore.getAssistant || assistantStore.getEmbedded) +const isAssistant = computed(() => assistantStore.getAssistant) + const chartId = computed(() => props.message?.record?.id + (props.enlarge ? '-fullscreen' : '')) const data = computed(() => { @@ -395,7 +397,7 @@ watch( -
+
diff --git a/frontend/src/views/dashboard/canvas/CanvasCore.vue b/frontend/src/views/dashboard/canvas/CanvasCore.vue index d15450780..e574ebb67 100644 --- a/frontend/src/views/dashboard/canvas/CanvasCore.vue +++ b/frontend/src/views/dashboard/canvas/CanvasCore.vue @@ -864,7 +864,7 @@ function startMove(e: MouseEvent, item: CanvasItem, index: number) { html2canvas(clonedSlot).then((canvas) => { img.src = canvas.toDataURL() - infoBox.value.cloneItem.appendChild(img) + infoBox.value.cloneItem?.appendChild(img) }) if (containerRef.value) { @@ -994,6 +994,12 @@ function startMove(e: MouseEvent, item: CanvasItem, index: number) { if (infoBox.value.resizeItem) { delete infoBox.value.resizeItem.isPlayer props.resizeEnd(e, infoBox.value.resizeItem, infoBox.value.resizeItem._dragId) + + if (infoBox.value.resizeItem.component === 'SQTab') { + const refTabInstance = + currentInstance.refs['shape_component_' + infoBox.value.resizeItem.id][0] + refTabInstance.outResizeEnd() + } } if (infoBox.value.moveItem) { props.dragEnd(e, infoBox.value.moveItem, infoBox.value.moveItem._dragId) diff --git a/frontend/src/views/dashboard/components/sq-tab/index.vue b/frontend/src/views/dashboard/components/sq-tab/index.vue index 2bb1c819c..06a44e97b 100644 --- a/frontend/src/views/dashboard/components/sq-tab/index.vue +++ b/frontend/src/views/dashboard/components/sq-tab/index.vue @@ -119,7 +119,12 @@ const beforeHandleCommand = (item: any, param: any) => { } } const isEditMode = computed(() => props.showPosition === 'canvas') - +const outResizeEnd = () => { + state.tabShow = false + nextTick(() => { + state.tabShow = true + }) +} const addTabItem = (item: CanvasItem) => { // do addTabItem const index = configItem.value.propValue.findIndex( @@ -168,6 +173,7 @@ onMounted(() => { defineExpose({ addTabItem, + outResizeEnd, }) @@ -224,35 +230,37 @@ defineExpose({ -
- - +
- -
+ + + +
+