From bc65a8ceae0a1ab5b6af43b3bfa472ca191bff31 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 12 Aug 2025 09:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/http/request.js | 2 + src/http/robot_request.js | 2 + src/style/naiveUi.scss | 4 + .../home/components/control-deck-new.vue | 1 + .../modal-content/add-or-edit-marker-form.vue | 117 +++---- .../components/modal-content/control-deck.vue | 6 +- .../modal-content/preset-setting.vue | 289 ++++++++++++++++-- 7 files changed, 343 insertions(+), 78 deletions(-) diff --git a/src/http/request.js b/src/http/request.js index 31bfffe..01bd70b 100644 --- a/src/http/request.js +++ b/src/http/request.js @@ -89,6 +89,8 @@ service.interceptors.response.use( setTimeout(() => { message.error('登录已经失效,请重新登录') + // 清除所有localStorage + localStorage.clear() window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws/#/unified/' }, 500) return Promise.reject(data) diff --git a/src/http/robot_request.js b/src/http/robot_request.js index b073fde..66b9232 100644 --- a/src/http/robot_request.js +++ b/src/http/robot_request.js @@ -86,6 +86,8 @@ service.interceptors.response.use( // modelShow = false // } message.error('登录已经失效,请重新登录') + // 清除所有localStorage + localStorage.clear() setTimeout(() => { window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws/#/unified/' }, 500) diff --git a/src/style/naiveUi.scss b/src/style/naiveUi.scss index 8e5f0d5..e6bf88e 100644 --- a/src/style/naiveUi.scss +++ b/src/style/naiveUi.scss @@ -134,4 +134,8 @@ .n-radio .n-radio__dot { background-color: #1d3861; +} + +.n-input.n-input--disabled { + background-color: #1d3861; } \ No newline at end of file diff --git a/src/views/home/components/control-deck-new.vue b/src/views/home/components/control-deck-new.vue index e0e5bdf..9343408 100644 --- a/src/views/home/components/control-deck-new.vue +++ b/src/views/home/components/control-deck-new.vue @@ -424,6 +424,7 @@ const audioMimeTypes = ref( '.pcm,.wav,.aac,audio/wav,audio/x-wav,audio/x-aiff,audio/aac,audio/x-aac', ) +// 音频操作选项 const audioOptions = ref([ { label: '播放', diff --git a/src/views/home/components/modal-content/add-or-edit-marker-form.vue b/src/views/home/components/modal-content/add-or-edit-marker-form.vue index accc42e..edd2858 100644 --- a/src/views/home/components/modal-content/add-or-edit-marker-form.vue +++ b/src/views/home/components/modal-content/add-or-edit-marker-form.vue @@ -7,11 +7,13 @@ >