Merge pull request 'fix: 解决资源库报错的问题;' (#216) from yangws into main

Reviewed-on: #216
This commit is contained in:
yangws 2024-09-18 13:56:28 +08:00
commit c32bd6eef4
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)