lsc преди 2 месеца
родител
ревизия
06135b7a45
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/Student/index.vue

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

@@ -1097,7 +1097,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 props.type == '1' || (props.type == '2' && work.classid.includes(props.cid)) && (work.atool === toolType || !toolType)
       })
       : res[0]