diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 6ef0b974dc..2ba4974edc 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -434,7 +434,7 @@ const actions = { window.jstoken?.setJsToken( window.location.hostname, objectId, - sessionToken + sessionToken + '_uniapp' ) } if (sessionToken) { diff --git a/src/views/DeviceCloud/manage/editdevices.vue b/src/views/DeviceCloud/manage/editdevices.vue index 4d78cb426c..35ffceb9d4 100644 --- a/src/views/DeviceCloud/manage/editdevices.vue +++ b/src/views/DeviceCloud/manage/editdevices.vue @@ -580,6 +580,43 @@ + + + + + + + + + + 播放 + diff --git a/src/views/DeviceCloud/manage/js/editdevices.js b/src/views/DeviceCloud/manage/js/editdevices.js index 7e15080d05..ff97dd1603 100644 --- a/src/views/DeviceCloud/manage/js/editdevices.js +++ b/src/views/DeviceCloud/manage/js/editdevices.js @@ -129,6 +129,7 @@ export default { }, } return { + videoOptions: ['m3u8', 'mp4', 'flv', 'mp3'], commandInfo: { dialog: false, data: {}, @@ -1219,5 +1220,15 @@ export default { this.devicesTableData[index] = newData }) }, + updatevideoSrc(deviceInfo) { + const params = { + detail: deviceInfo.detail, + } + this.$putDevice(deviceInfo.objectId, params) + this.activeName = 'first' + this.$nextTick(function () { + this.activeName = 'video' + }) + }, }, }