|
|
@@ -178,11 +178,15 @@ const editTool = () => {
|
|
|
const elements = currentSlide.value?.elements || []
|
|
|
const frameElement = elements.find((el: any) => el.type === 'frame' && (el.toolType === 45 || el.toolType === 15))
|
|
|
if (frameElement) {
|
|
|
+ const url = frameElement.url || ''
|
|
|
+ const match = url.match(/[?&]id=([^&]+)/)
|
|
|
+ const urlId = match ? match[1] : ''
|
|
|
+
|
|
|
interface ParentWindowWithToolList extends Window {
|
|
|
toolBtn?: (action: number, id: string) => void;
|
|
|
}
|
|
|
const parentWindow = window.parent as ParentWindowWithToolList
|
|
|
- parentWindow?.toolBtn?.(0, frameElement.id || '')
|
|
|
+ parentWindow?.toolBtn?.(0, urlId)
|
|
|
}
|
|
|
}
|
|
|
|