未验证 提交 d07b1892 编写于 作者: W wsgfz 提交者: GitHub

Update helper.js

应该是n
上级 601d8e46
......@@ -92,7 +92,7 @@ module.exports = {
assert(clusterName, 'clusterName is required');
if (Array.isArray(namespaceName)) {
if (namespaceName.length === 0) return [`${configServerUrl}/configfiles/json/${appId}/${clusterName}/application?ip=${clientIp}`];
return namespaceName.map(n => `${configServerUrl}/configfiles/json/${appId}/${clusterName}/${namespaceName}?ip=${clientIp}`);
return namespaceName.map(n => `${configServerUrl}/configfiles/json/${appId}/${clusterName}/${n}?ip=${clientIp}`);
} else {
return [`${configServerUrl}/configfiles/json/${appId}/${clusterName}/${namespaceName}?ip=${clientIp}`];
}
......@@ -112,4 +112,4 @@ module.exports = {
return [`${configServerUrl}/configs/${appId}/${clusterName}/${namespaceName}?releaseKey=${releaseKey}&ip=${clientIp}`];
}
}
};
\ No newline at end of file
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册