From 35f71fc85803a2ef5ef32efb17bcbfa3ad8ab0d5 Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Fri, 18 Sep 2026 16:16:04 +0800 Subject: [PATCH] modify --- components.d.ts | 2 - src/App.vue | 4 - src/components/TtsMapEditor.vue | 2 +- src/router/index.ts | 13 +- src/views/DoubaoView.vue | 267 -------------------------------- 5 files changed, 7 insertions(+), 281 deletions(-) delete mode 100644 src/views/DoubaoView.vue diff --git a/components.d.ts b/components.d.ts index 078fa86..04ad386 100644 --- a/components.d.ts +++ b/components.d.ts @@ -39,7 +39,6 @@ declare module 'vue' { ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] - ElUpload: typeof import('element-plus/es')['ElUpload'] HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] PluginConfigForm: typeof import('./src/components/PluginConfigForm.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] @@ -81,7 +80,6 @@ declare global { const ElTabPane: typeof import('element-plus/es')['ElTabPane'] const ElTabs: typeof import('element-plus/es')['ElTabs'] const ElTag: typeof import('element-plus/es')['ElTag'] - const ElUpload: typeof import('element-plus/es')['ElUpload'] const HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] const PluginConfigForm: typeof import('./src/components/PluginConfigForm.vue')['default'] const RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/App.vue b/src/App.vue index bd9d035..e2ef4b3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,10 +20,6 @@ :ellipsis="false" > - - 豆包测试 - - 参数配置 diff --git a/src/components/TtsMapEditor.vue b/src/components/TtsMapEditor.vue index 0d1f36a..cafcb41 100644 --- a/src/components/TtsMapEditor.vue +++ b/src/components/TtsMapEditor.vue @@ -7,7 +7,7 @@ class="tts-key" :disabled="disabled" :fetch-suggestions="fetchSuggestions" - placeholder="违规类型(如 人员闯入)" + placeholder="违规类型(如 Intrude)" clearable /> → diff --git a/src/router/index.ts b/src/router/index.ts index a91960d..0e27f27 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,14 +1,13 @@ import { createRouter, createWebHistory } from 'vue-router' -import DoubaoView from '../views/DoubaoView.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ - { - path: '/', - name: 'doubao', - component: DoubaoView, - }, + // { + // path: '/', + // name: 'doubao', + // component: DoubaoView, + // }, { path: '/about', name: 'about', @@ -24,7 +23,7 @@ const router = createRouter({ component: () => import('../views/WorkerView.vue'), }, { - path: '/config', + path: '/', name: 'config', // 懒加载参数配置页(面向客户的音柱/告警结构化配置) component: () => import('../views/ConfigView.vue'), diff --git a/src/views/DoubaoView.vue b/src/views/DoubaoView.vue deleted file mode 100644 index 69edfa5..0000000 --- a/src/views/DoubaoView.vue +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - - 豆包视觉理解测试 - - - - - - - - - - - - - - 拖拽图片到此处,或 点击选择 - - 支持 JPG / PNG / WebP - - - - - - - - - - - - - {{ fileInfo }} - - - - - {{ loading ? "分析中..." : "🚀 分析图片" }} - - - 复制结果 - - - - - - - - - 分析结果 - - - - - - - - -