删除所有 as any.

This commit is contained in:
lijiahang
2023-09-21 17:12:00 +08:00
parent 3e55276a13
commit f5f9cff4d4
10 changed files with 62 additions and 20 deletions

View File

@@ -53,7 +53,7 @@
!tagList.value.some((tag) => tag.fullPath === route.fullPath)
) {
// 固定并且没有此 tab 则添加
tabBarStore.addTab(routerToTag(route), route.meta?.ignoreCache as unknown as any);
tabBarStore.addTab(routerToTag(route), route.meta?.ignoreCache as unknown as boolean);
}
}, true);

View File

@@ -37,7 +37,7 @@
return props.modelValue;
},
async set(e) {
await checkCreateTag(e as any);
await checkCreateTag(e as Array<any>);
emits('update:modelValue', e);
}
});