|
|
@@ -2164,7 +2164,8 @@ 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)
|
|
|
+ // console.log(work.ttype == '1' || (work.ttype == '2' && work.classid.includes(props.cid)) && (work.atool === toolType.value || !toolType.value))
|
|
|
+ return work.ttype == '1' || (work.ttype == '2' && work.classid.includes(props.cid)) && (work.atool == toolType.value || !toolType.value)
|
|
|
})
|
|
|
: res[0]
|
|
|
|