fix: 修改bug

This commit is contained in:
100011797 2023-07-06 16:11:12 +08:00
parent 5912ebd703
commit 65e1249104
1 changed files with 1 additions and 3 deletions

View File

@ -170,10 +170,8 @@ const queryTypeList = async () => {
if (resp.status === 200) { if (resp.status === 200) {
const provider = resp.result.map((i: any) => i.provider) || []; const provider = resp.result.map((i: any) => i.provider) || [];
const arr = tab.filter((item: any) => { const arr = tab.filter((item: any) => {
const _arr = [...provider, item.type] return item.type.some((i: any) => provider.includes(i))
return new Set(_arr).size < _arr.length
}); });
tabs.value = arr; tabs.value = arr;
if(arr.length > 0) { if(arr.length > 0) {
subscribeNotice(); subscribeNotice();