diff --git a/src/views/equipmentCenter/videoManage/videoConfig.vue b/src/views/equipmentCenter/videoManage/videoConfig.vue index 7a36010b..061ca02a 100644 --- a/src/views/equipmentCenter/videoManage/videoConfig.vue +++ b/src/views/equipmentCenter/videoManage/videoConfig.vue @@ -2456,7 +2456,10 @@ export default { } } else { // this.currentVideoTypeDetail = res.result[0]; - this.currentVideoTypeDetail = res.result; + this.currentVideoTypeDetail = { + ...res.result, + port: res.result.password + }; console.log("配置信息", this.currentVideoTypeDetail); localStorage.setItem( "configInfo", @@ -2579,7 +2582,12 @@ export default { // this.currentVideoTypeDetail.password = '123456'; // this.currentVideoTypeDetail.appId = '66b4fc1d6703468c8ee93b2919a3f20b'; // this.currentVideoTypeDetail.appSecret = '0a5836c68a7edabcc78e6a18f05bb317'; - editProjectVideoConfigApi(this.currentVideoTypeDetail).then((res) => { + const params = { + ...this.currentVideoTypeDetail, + } + delete params.password; + + editProjectVideoConfigApi(params).then((res) => { console.log("新添加服务配置", res); this.Popup.playPattern = false; this.Popup.accountConfig = false;