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')" />