fix 下载及订阅用户匹配

This commit is contained in:
jxxghp
2024-03-08 15:27:51 +08:00
parent 1786e10101
commit 659d8bff66
3 changed files with 6 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ const filteredDataList = computed(() => {
if (superUser)
return dataList.value
else
return dataList.value.filter(data => data.userid === userName)
return dataList.value.filter(data => data.userid === userName || data.username === userName)
})
// 加载时获取数据

View File

@@ -49,7 +49,7 @@ const filteredDataList = computed(() => {
if (superUser)
return dataList.value.filter(data => data.type === props.type)
else
return dataList.value.filter(data => data.type === props.type && data.username === userName)
return dataList.value.filter(data => data.type === props.type && (data.username === userName))
})
</script>