fix(gateway): 修复测试网关端口数据类型:String改为Int类型

This commit is contained in:
jym503558564
2020-09-21 11:23:04 +08:00
committed by Orange
parent 026c8f37ea
commit 829957090d

View File

@@ -110,7 +110,7 @@ export default {
methods: {
dialogConfirm() {
this.buttonLoading = true
this.$axios.post(`/api/v1/assets/gateways/${this.cellValue}/test-connective/`, { port: this.portInput }).then(
this.$axios.post(`/api/v1/assets/gateways/${this.cellValue}/test-connective/`, { port: parseInt(this.portInput) }).then(
res => {
return this.$message.success(this.$t('common.TestSuccessMsg'))
}