From a2da6cc21a1fff107fdb0282112a85776c856962 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B2=A1=E5=A4=8D=E4=B9=A0?= <2353956224@qq.com>
Date: Tue, 11 Nov 2025 15:13:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=A5=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 4 ++--
src/components/translationDialog.vue | 6 +++---
src/views/HomeView.vue | 2 +-
src/views/VideoStream.vue | 24 ++++++++++++++++--------
4 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/.env.development b/.env.development
index 29fd564..025ed70 100644
--- a/.env.development
+++ b/.env.development
@@ -4,8 +4,8 @@ VUE_APP_BASE_LOCAL=http://127.0.0.1:34567/
# VUE_APP_BASE_LOCAL=http://192.168.1.209:34567/
# 业务后端(开发用内网地址)
-VUE_APP_BASE_REMOTE=https://crawlclient.api.yolozs.com
-# VUE_APP_BASE_REMOTE=http://192.168.1.144:8101/
+# VUE_APP_BASE_REMOTE=https://crawlclient.api.yolozs.com
+VUE_APP_BASE_REMOTE=http://192.168.1.144:8101/
# AI 服务
VUE_APP_BASE_SPECIAL=https://ai.yolozs.com
\ No newline at end of file
diff --git a/src/components/translationDialog.vue b/src/components/translationDialog.vue
index ceb4550..ad59216 100644
--- a/src/components/translationDialog.vue
+++ b/src/components/translationDialog.vue
@@ -155,7 +155,7 @@
取消
- 确定
+ 确定
@@ -345,7 +345,7 @@ const getLangLabel = (v) => (languageOptions.value.find((x) => x.value === v)?.l
/** 计算属性 */
const canTranslate = computed(() => sentences.length > 0 && selectedLangs.value.length > 0)
const isAnyLoading = computed(() => Object.values(loadingLangs).some(Boolean))
-const canConfirm = computed(() => !!activeTab.value && !!(translations[activeTab.value] || []).length)
+// const canConfirm = computed(() => !!activeTab.value && !!(translations[activeTab.value] || []).length)
/**
* 方法 - 源文本
@@ -500,7 +500,7 @@ watch([sentences, selectedLangs, translations, activeTab], () => {
}, { deep: true })
async function onConfirm() {
- if (!activeTab.value) return
+ // if (!activeTab.value) return
// 如果关闭了翻译功能,则先提示
if (!isTranslation.value) {
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index 085a6ef..ce36bbc 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -79,7 +79,7 @@ import { getToken, setToken, setUser, setUserPass, getUserPass } from '@/stores/
import { ElLoading, ElMessage } from 'element-plus';
import { passToken } from '@/api/ios';
-let version = ref('2.8.0');
+let version = ref('2.9.1');
onMounted(() => {
diff --git a/src/views/VideoStream.vue b/src/views/VideoStream.vue
index 0f514f0..08349cd 100644
--- a/src/views/VideoStream.vue
+++ b/src/views/VideoStream.vue
@@ -59,11 +59,11 @@
+ :index="selectedDevice" @confirm="onDialogConfirm" @cancel="stopAll(2000, 'click')" />
+ storage-key-prefix="demo-translation" @confirm="onConfirm" @cancel="stopAll(2000, 'click')" />