Compare commits

..

3 Commits

Author SHA1 Message Date
WangXuewen
a25e706e28
Pre Merge pull request !34 from WangXuewen/master 2025-05-16 03:03:23 +00:00
lin
c981e7f470 修复h265web调用的逻辑异常 2025-05-16 11:03:10 +08:00
lin
b8f2742c29 修复节点添加异常 2025-05-16 08:48:38 +08:00
3 changed files with 6 additions and 6 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

@ -208,15 +208,15 @@ export default {
unPause: function() {
if (h265webPlayer[this._uid]) {
h265webPlayer[this._uid].play()
this.playing = h265webPlayer[this._uid].isPlaying()
}
this.playing = h265webPlayer[this._uid].isPlaying()
this.err = ''
},
pause: function() {
if (h265webPlayer[this._uid]) {
h265webPlayer[this._uid].pause()
this.playing = h265webPlayer[this._uid].isPlaying()
}
this.playing = h265webPlayer[this._uid].isPlaying()
this.err = ''
},
mute: function() {

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({