|
@@ -137,11 +137,11 @@ export default {
|
|
|
};
|
|
};
|
|
|
Texttrans(params)
|
|
Texttrans(params)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
- if (res.status == 1) {
|
|
|
|
|
|
|
+ if (res.status === 1) {
|
|
|
this.translateResultList = res.trans_list || [];
|
|
this.translateResultList = res.trans_list || [];
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- .catch((err) => {
|
|
|
|
|
|
|
+ .catch(() => {
|
|
|
this.$message.error('翻译失败');
|
|
this.$message.error('翻译失败');
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|