|
|
@@ -422,7 +422,7 @@ import CountdownTimer from '@/views/Screen/CountdownTimer.vue'
|
|
|
import useSlideBackgroundStyle from '@/hooks/useSlideBackgroundStyle'
|
|
|
import useImport from '@/hooks/useImport'
|
|
|
import message from '@/utils/message'
|
|
|
-import api, { API_URL } from '@/services/course'
|
|
|
+import api, { API_URL, selectSWorks } from '@/services/course'
|
|
|
import axios from '@/services/config'
|
|
|
import {currentVersion, lang} from '@/main'
|
|
|
import ShotWorkModal from './components/ShotWorkModal.vue'
|
|
|
@@ -2514,6 +2514,18 @@ const handleRefreshPage = () => {
|
|
|
console.log('刷新iframe按钮被点击')
|
|
|
|
|
|
try {
|
|
|
+
|
|
|
+ const element = elementList.value.find((i:any) => i.type === 'frame')
|
|
|
+ console.log(element)
|
|
|
+ if (
|
|
|
+ element &&
|
|
|
+ typeof element === 'object' &&
|
|
|
+ ('toolType' in element) &&
|
|
|
+ (element as any).toolType !== undefined &&
|
|
|
+ ((element as any).toolType === 45 || (element as any).toolType === 15 || (element as any).toolType === 73 || (element as any).toolType === 72 || (element as any).toolType === 78 || (element as any).toolType === 79)
|
|
|
+ ) {
|
|
|
+ selectSWorks()
|
|
|
+ }
|
|
|
// 获取当前幻灯片中的所有iframe元素
|
|
|
const iframes = document.querySelectorAll('.viewer-canvas .screen-slide')[slideIndex.value].querySelectorAll('iframe')
|
|
|
console.log('找到iframe元素数量:', iframes.length)
|