Commit bcb5980b authored by 高飞's avatar 高飞

修改情感值返回数据的格式bug

parent 6f457b84
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
} else if (this.form.technique == 4) { } else if (this.form.technique == 4) {
if (this.form.text.trim() != '') { if (this.form.text.trim() != '') {
emotionNews({ data: this.form.text.trim() }).then(res => { emotionNews({ data: this.form.text.trim() }).then(res => {
this.form.result = JSON.parse(res.score); this.form.result = JSON.parse(res).score;
}).catch(err=>{ }).catch(err=>{
this.$message.warning(err.message); this.$message.warning(err.message);
}) })
......
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