|
@@ -1097,7 +1097,7 @@ const getWork = async (isUpdate = false) => {
|
|
const toolType = frame?.toolType ?? ''
|
|
const toolType = frame?.toolType ?? ''
|
|
const newWorkArray = props.cid
|
|
const newWorkArray = props.cid
|
|
? res[0].filter((work: any) => {
|
|
? 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]
|
|
: res[0]
|
|
|
|
|