@ -141,7 +141,7 @@ export default {
},
methods: {
controlClick: throttle(function (type) {
controlCamera(this.dialogData.iotDeviceId, type);
controlCamera(this.dialogData.iotDeviceId, type, false);
}, 150),
visibleClose(bool) {
if (bool) return;
@ -87,12 +87,12 @@ function padZero(num) {
99 /各⽅向动作停⽌/
* @returns
*/
export function controlCamera(camId, cmdType) {
export function controlCamera(camId, cmdType, isMsgType = true) {
return request({
url: "/video/PTZControl",
method: "get",
params: {
msgType: 3,
...(isMsgType ? { msgType: 3 } : undefined),
camId,
cmdType,
speed: 1,