fix: 解决资源库报错的问题; #216

Merged
yangws merged 1 commits from yangws into main 2024-09-18 13:56:30 +08:00
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ const subjectList = ref([])
//
const getSubject = () => {
//
if(!userInfo.user.subject) return
listEvaluation({ itemkey: 'subject', pageSize: 500 }).then((res) => {
const arr = userStore.user.subject.split(',')
subjectList.value = res.rows.filter(item => arr.includes(String(item.id))).map(items => items)