修复节点添加异常

This commit is contained in:
lin
2025-05-16 08:48:38 +08:00
parent bb5018c7f4
commit b8f2742c29
2 changed files with 4 additions and 4 deletions

View File

@@ -24,13 +24,13 @@ export function getMediaServer(id) {
}
export function checkMediaServer(params) {
const { ip, port, secret, type } = params
const { ip, httpPort, secret, type } = params
return request({
method: 'get',
url: `/api/server/media_server/check`,
params: {
ip: ip,
port: port,
port: httpPort,
secret: secret,
type: type
}

View File

@@ -11,7 +11,7 @@
@close="close()"
>
<div id="formStep" style="margin-top: 1rem; margin-right: 20px;">
<el-form v-if="currentStep == 1" ref="mediaServerForm" :rules="rules" :model="mediaServerForm" label-width="140px">
<el-form v-if="currentStep === 1" ref="mediaServerForm" :rules="rules" :model="mediaServerForm" label-width="140px">
<el-form-item label="IP" prop="ip">
<el-input v-model="mediaServerForm.ip" placeholder="媒体服务IP" clearable :disabled="mediaServerForm.defaultServer" />
</el-form-item>
@@ -237,7 +237,7 @@ export default {
},
checkServer: function() {
this.serverCheck = 0
this.$store.dispatch("server/checkMediaServer", this.mediaServerForm)
this.$store.dispatch('server/checkMediaServer', this.mediaServerForm)
.then(data => {
if (parseInt(this.mediaServerForm.httpPort) !== parseInt(data.httpPort)) {
this.$message({