fix: 修改bug
This commit is contained in:
parent
5912ebd703
commit
65e1249104
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue