(vue)switch循环
this.content = this.data.content;
if (this.content.type == "1") {
this.content.type = "搜索";
} else if (this.content.type == "2") {
this.content.type = "问答";
}
switch (this.content.responseBody) {
case "0":
this.content.responseBody = "实体";
break;
case "1":
this.content.responseBody = "概念";
break;
case "2":
this.content.responseBody = "属性";
}
效果: