Commit b0a73aa6 authored by ibuler's avatar ibuler

[Update] 处理创建资产时labels的问题

parent 26f68bc7
...@@ -229,6 +229,9 @@ $(document).ready(function () { ...@@ -229,6 +229,9 @@ $(document).ready(function () {
return v return v
}); });
data["protocols"] = protocols; data["protocols"] = protocols;
if (typeof data.labels === "string") {
data["labels"] = [data["labels"]];
}
if (typeof data["nodes"] == "string") { if (typeof data["nodes"] == "string") {
data["nodes"] = [data["nodes"]] data["nodes"] = [data["nodes"]]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment