Skip to content

Commit d3b0c81

Browse files
committed
fix: 为未安装的依赖添加中文提示
1 parent 2aca753 commit d3b0c81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/info/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ export async function getUniAppInfo() {
139139
if (packageInfo?.installed) {
140140
errorDependenciesStr += ` - ${uniDependency}: \`${packageInfo.installed}\`\n`
141141
}
142+
else {
143+
errorDependenciesStr += ` - ${uniDependency}: \`未安装\`\n`
144+
}
142145
}
143146
}
144147
}

0 commit comments

Comments
 (0)