产品化改造:完善本地集成与启动体验
This commit is contained in:
@@ -486,13 +486,15 @@ function App() {
|
||||
|
||||
const deps = result?.results ?? [];
|
||||
const hasMissingOrError = deps.some(
|
||||
(d: { status: string }) =>
|
||||
d.status === "missing" || d.status === "error",
|
||||
(d: { status: string; required?: boolean }) =>
|
||||
d.required !== false &&
|
||||
(d.status === "missing" || d.status === "error"),
|
||||
);
|
||||
const missingDeps = deps
|
||||
.filter(
|
||||
(d: { status: string }) =>
|
||||
d.status === "missing" || d.status === "error",
|
||||
(d: { status: string; required?: boolean }) =>
|
||||
d.required !== false &&
|
||||
(d.status === "missing" || d.status === "error"),
|
||||
)
|
||||
.map((d: { name: string; status: string }) => d.name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user