Skip to content

Commit 2c7519c

Browse files
committed
新增:增加大模型配置
1 parent 14ce496 commit 2c7519c

File tree

8 files changed

+96
-47
lines changed

8 files changed

+96
-47
lines changed

src/components/PageNav.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,24 @@ const doUser = async () => {
8080
<div class="text-sm">{{ $t('数字人') }}</div>
8181
</a>
8282
<a class="page-nav-item block text-center py-3"
83+
:class="activeTab==='live'?'active':''"
8384
v-if="0"
84-
:class="activeTab==='tool'?'active':''"
85-
@click="$router.push('/tool')"
85+
@click="$router.push('/live')"
8686
href="javascript:;">
8787
<div>
88-
<icon-tool class="text-xl"/>
88+
<icon-live-broadcast class="text-xl"/>
8989
</div>
90-
<div class="text-sm">{{ $t('工具箱') }}</div>
90+
<div class="text-sm">{{ $t('直播') }}</div>
9191
</a>
9292
<a class="page-nav-item block text-center py-3"
93-
:class="activeTab==='live'?'active':''"
94-
@click="$router.push('/live')"
93+
:class="activeTab==='tool'?'active':''"
94+
v-if="0"
95+
@click="$router.push('/tool')"
9596
href="javascript:;">
9697
<div>
97-
<icon-live-broadcast class="text-xl"/>
98+
<icon-tool class="text-xl"/>
9899
</div>
99-
<div class="text-sm">{{ $t('直播') }}</div>
100+
<div class="text-sm">{{ $t('工具箱') }}</div>
100101
</a>
101102
<a class="page-nav-item block text-center py-3"
102103
:class="activeTab==='server'?'active':''"

src/pages/Live.vue

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,56 @@
11
<script setup lang="ts">
22
33
import {onMounted, ref} from "vue";
4-
import SoundTts from "./Sound/SoundTts.vue";
5-
import SoundClone from "./Sound/SoundClone.vue";
6-
import VideoGen from "./Video/VideoGen.vue";
74
import Router from "../router";
8-
import SoundPrompt from "./Sound/SoundPrompt.vue";
9-
import VideoTemplate from "./Video/VideoTemplate.vue";
10-
import VideoGenFlow from "./Video/VideoGenFlow.vue";
5+
import LiveKnowledge from "./Live/LiveKnowledge.vue";
6+
import LiveAvatar from "./Live/LiveAvatar.vue";
7+
import LiveMonitor from "./Live/LiveMonitor.vue";
118
129
const tab = ref('');
1310
1411
onMounted(() => {
15-
tab.value = Router.currentRoute.value.query.tab as string || 'soundTts';
12+
tab.value = Router.currentRoute.value.query.tab as string || 'knowledge';
1613
});
1714
</script>
1815

1916
<template>
2017
<div class="pb-device-container bg-white h-full relative select-none flex">
2118
<div class="p-6 w-52 flex-shrink-0 border-r border-solid border-gray-100">
2219
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
23-
:class="tab === 'soundTts' ? 'bg-gray-200' : ''"
24-
@click="tab = 'soundTts'">
20+
:class="tab === 'knowledge' ? 'bg-gray-200' : ''"
21+
@click="tab = 'knowledge'">
2522
<div class="text-base">
26-
<i class="iconfont icon-sound-generate w-6 inline-block"></i>
27-
直播形象
28-
</div>
29-
</div>
30-
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
31-
:class="tab === 'soundTts2' ? 'bg-gray-200' : ''"
32-
@click="tab = 'soundTts2'">
33-
<div class="text-base">
34-
<i class="iconfont icon-sound-generate w-6 inline-block"></i>
35-
音色控制
23+
<div class="inline-block w-6">
24+
<icon-book/>
25+
</div>
26+
知识库
3627
</div>
3728
</div>
3829
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
39-
:class="tab === 'soundTts1' ? 'bg-gray-200' : ''"
40-
@click="tab = 'soundTts'">
30+
:class="tab === 'avatar' ? 'bg-gray-200' : ''"
31+
@click="tab = 'avatar'">
4132
<div class="text-base">
42-
<i class="iconfont icon-sound-generate w-6 inline-block"></i>
43-
知识库
33+
<div class="inline-block w-6">
34+
<icon-user-group/>
35+
</div>
36+
形象管理
4437
</div>
4538
</div>
4639
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
47-
:class="tab === 'soundPrompt' ? 'bg-gray-200' : ''"
48-
@click="tab = 'soundPrompt'">
40+
:class="tab === 'monitor' ? 'bg-gray-200' : ''"
41+
@click="tab = 'monitor'">
4942
<div class="text-base">
50-
<i class="iconfont icon-sound-prompt w-6 inline-block"></i>
51-
直播控制
43+
<div class="inline-block w-6">
44+
<icon-command/>
45+
</div>
46+
控制台
5247
</div>
5348
</div>
5449
</div>
5550
<div class="flex-grow h-full overflow-y-auto">
56-
<SoundTts v-if="tab === 'soundTts'"/>
57-
<SoundPrompt v-else-if="tab==='soundPrompt'"/>
58-
<SoundClone v-else-if="tab === 'soundClone'"/>
59-
<VideoTemplate v-else-if="tab==='videoTemplate'"/>
60-
<VideoGen v-else-if="tab === 'videoGen'"/>
61-
<VideoGenFlow v-else-if="tab === 'videoGenFlow'"/>
51+
<LiveKnowledge v-if="tab === 'knowledge'"/>
52+
<LiveAvatar v-else-if="tab === 'avatar'"/>
53+
<LiveMonitor v-else-if="tab === 'monitor'"/>
6254
</div>
6355
</div>
6456
</template>

src/pages/Live/LiveAvatar.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup lang="ts">
2+
3+
</script>
4+
5+
<template>
6+
7+
</template>
8+
9+
<style scoped>
10+
11+
</style>

src/pages/Live/LiveKnowledge.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup lang="ts">
2+
3+
</script>
4+
5+
<template>
6+
7+
</template>
8+
9+
<style scoped>
10+
11+
</style>

src/pages/Live/LiveMonitor.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup lang="ts">
2+
3+
</script>
4+
5+
<template>
6+
7+
</template>
8+
9+
<style scoped>
10+
11+
</style>

src/pages/Tool.vue

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<script setup lang="ts">
2+
3+
import {onMounted, ref} from "vue";
4+
import Router from "../router";
5+
import LiveKnowledge from "./Live/LiveKnowledge.vue";
6+
import LiveAvatar from "./Live/LiveAvatar.vue";
7+
import LiveMonitor from "./Live/LiveMonitor.vue";
8+
9+
const tab = ref('');
10+
11+
onMounted(() => {
12+
tab.value = Router.currentRoute.value.query.tab as string || 'knowledge';
13+
});
14+
</script>
15+
16+
<template>
17+
<div class="pb-device-container bg-white h-full relative select-none flex">
18+
<div class="text-center w-full">
19+
</div>
20+
</div>
21+
</template>
22+

src/pages/Video.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,47 +24,47 @@ onMounted(() => {
2424
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
2525
:class="tab === 'soundTts' ? 'bg-gray-200' : ''"
2626
@click="tab = 'soundTts'">
27-
<div class="text-base">
27+
<div class="text-base truncate">
2828
<i class="iconfont icon-sound-generate w-6 inline-block"></i>
2929
{{ t('声音合成') }}
3030
</div>
3131
</div>
3232
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
3333
:class="tab === 'soundPrompt' ? 'bg-gray-200' : ''"
3434
@click="tab = 'soundPrompt'">
35-
<div class="text-base">
35+
<div class="text-base truncate">
3636
<i class="iconfont icon-sound-prompt w-6 inline-block"></i>
3737
{{ t('我的音色') }}
3838
</div>
3939
</div>
4040
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
4141
:class="tab === 'soundClone' ? 'bg-gray-200' : ''"
4242
@click="tab = 'soundClone'">
43-
<div class="text-base">
43+
<div class="text-base truncate">
4444
<i class="iconfont icon-sound-clone w-6 inline-block"></i>
4545
{{ t('声音克隆') }}
4646
</div>
4747
</div>
4848
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
4949
:class="tab === 'videoTemplate' ? 'bg-gray-200' : ''"
5050
@click="tab = 'videoTemplate'">
51-
<div class="text-base">
51+
<div class="text-base truncate">
5252
<i class="iconfont icon-video-template w-6 inline-block"></i>
5353
{{ t('我的形象') }}
5454
</div>
5555
</div>
5656
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
5757
:class="tab === 'videoGen' ? 'bg-gray-200' : ''"
5858
@click="tab = 'videoGen'">
59-
<div class="text-base">
59+
<div class="text-base truncate">
6060
<i class="iconfont icon-video w-6 inline-block"></i>
6161
{{ t('视频合成') }}
6262
</div>
6363
</div>
6464
<div class="p-2 rounded-lg mr-2 mb-4 cursor-pointer"
6565
:class="tab === 'videoGenFlow' ? 'bg-gray-200' : ''"
6666
@click="tab = 'videoGenFlow'">
67-
<div class="text-base">
67+
<div class="text-base truncate">
6868
<i class="iconfont icon-quick w-6 inline-block"></i>
6969
{{ $t('一键合成') }}
7070
</div>

src/router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const routes = [
1010
{path: 'home', component: () => import('./pages/Home.vue')},
1111
{path: 'server', component: () => import('./pages/Server.vue')},
1212
{path: 'video', component: () => import('./pages/Video.vue')},
13+
{path: 'tool', component: () => import('./pages/Tool.vue')},
1314
{path: 'live', component: () => import('./pages/Live.vue')},
1415
{path: 'setting', component: () => import('./pages/Setting.vue')},
1516
]

0 commit comments

Comments
 (0)