diff --git a/src/api/request.js b/src/api/request.js index cd728b7..de259be 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -41,10 +41,11 @@ instance.interceptors.response.use( if (res.data.code == 200) { return res.data } else { - ElMessage({ - message: res.data.msg, - type: 'error' - }) + console.error("接口请求错误:"+res.data.msg) + // ElMessage({ + // message: res.data.msg, + // type: 'error' + // }) return Promise.reject(res.data) } }, diff --git a/src/assets/images/loading.gif b/src/assets/images/loading.gif new file mode 100644 index 0000000..89a6ecf Binary files /dev/null and b/src/assets/images/loading.gif differ diff --git a/src/components/VideoDialog/index.vue b/src/components/VideoDialog/index.vue index 3a94f65..79acf3c 100644 --- a/src/components/VideoDialog/index.vue +++ b/src/components/VideoDialog/index.vue @@ -66,13 +66,20 @@ import { postVideoControlApi,postVideoCollectApi } from '@/api/monitor' import { getColletDiyApi } from '@/api/home' import pubSub from 'pubsub-js' - const Z00M_IN = 'ZOOM_IN' // 焦距变大 - const Z00M_OUT = 'ZOOM_OUT' // 焦距变小 - const UP = 'UP' // 上转 - const DOWN = 'DOWN' // 下转 - const LEFT = 'LEFT' // 左转 - const RIGHT = 'RIGHT' // 右转 - const STOP = 'STOP' // 停止操作 + // const Z00M_IN = 'ZOOM_IN' // 焦距变大 + // const Z00M_OUT = 'ZOOM_OUT' // 焦距变小 + // const UP = 'UP' // 上转 + // const DOWN = 'DOWN' // 下转 + // const LEFT = 'LEFT' // 左转 + // const RIGHT = 'RIGHT' // 右转 + // const STOP = 'STOP' // 停止操作 + const Z00M_IN = 'zoomin' // 焦距变大 + const Z00M_OUT = 'zoomout' // 焦距变小 + const UP = 'up' // 上转 + const DOWN = 'down' // 下转 + const LEFT = 'left' // 左转 + const RIGHT = 'right' // 右转 + const STOP = 'stop' // 停止操作 let ACTION = '0' let command = ref('') @@ -149,6 +156,7 @@ const handleAction = async (e) => { if (e == STOP) { ACTION = '1' + command.value = e } else { ACTION = '0' command.value = e diff --git a/src/layout/components/CoreVideo/allList.vue b/src/layout/components/CoreVideo/allList.vue index 789f84c..2ad909a 100644 --- a/src/layout/components/CoreVideo/allList.vue +++ b/src/layout/components/CoreVideo/allList.vue @@ -12,7 +12,7 @@ @click="handleItem(item)" >
取消关注
-