Przeglądaj źródła

修改获取作业ID逻辑

SanHQin 4 tygodni temu
rodzic
commit
06f7fbc99f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/views/Student/index.vue

+ 1 - 1
src/views/Student/index.vue

@@ -958,7 +958,7 @@ const handleFullscreenChange = () => {
 
 const getWorkId = () => {
   // 修复类型报错:elementList 可能没有 toolType 和 url 字段,需先判断类型
-  const element = elementList.value[0]
+  const element = elementList.value.find((i:any) => i.type === 'frame')
   console.log(element)
   if (
     element &&