lsc 7 tháng trước cách đây
mục cha
commit
53091ea8a6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/Student/index.vue

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

@@ -1685,7 +1685,7 @@ const getWork = async (isUpdate = false) => {
     const toolType = frame?.toolType ?? ''
     const newWorkArray = props.cid
       ? res[0].filter((work: any) => {
-        return props.type == '1' || (props.type == '2' && work.classid.includes(props.cid)) && (work.atool === toolType || !toolType)
+        return work.ttype == '1' || (work.ttype == '2' && work.classid.includes(props.cid)) && (work.atool == toolType.value || !toolType.value)
       })
       : res[0]