lsc 21 ساعت پیش
والد
کامیت
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]