style: 优化整体title显示
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Yi.Framework.AiHub.Application.Services;
|
||||
/// <summary>
|
||||
/// 渠道商管理服务实现
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
[Authorize(Roles = "admin")]
|
||||
public class ChannelService : ApplicationService, IChannelService
|
||||
{
|
||||
private readonly ISqlSugarRepository<AiAppAggregateRoot, Guid> _appRepository;
|
||||
|
||||
@@ -76,10 +76,13 @@ function handleConsoleClick(e: MouseEvent) {
|
||||
AI对话
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/chat/image">
|
||||
图片生成
|
||||
AI图片
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/chat/video">
|
||||
视频生成
|
||||
AI视频
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/chat/agent">
|
||||
AI智能体
|
||||
</el-menu-item>
|
||||
</el-sub-menu>
|
||||
|
||||
|
||||
26
Yi.Ai.Vue3/src/pages/chat/agent/index.vue
Normal file
26
Yi.Ai.Vue3/src/pages/chat/agent/index.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<script setup lang="ts">
|
||||
// 智能体功能 - 预留
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="image-generation-page">
|
||||
<el-empty description="智能体功能开发中,敬请期待">
|
||||
<template #image>
|
||||
<el-icon style="font-size: 80px; color: var(--el-color-primary);">
|
||||
<i-ep-picture />
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-empty>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.image-generation-page {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: var(--el-bg-color);
|
||||
}
|
||||
</style>
|
||||
@@ -11,9 +11,10 @@ const isCollapsed = ref(true);
|
||||
|
||||
// 菜单项配置
|
||||
const navItems = [
|
||||
{ name: 'conversation', label: '对话', icon: 'ChatDotRound', path: '/chat/conversation' },
|
||||
{ name: 'image', label: '图片生成', icon: 'Picture', path: '/chat/image' },
|
||||
{ name: 'video', label: '视频生成', icon: 'VideoCamera', path: '/chat/video' },
|
||||
{ name: 'conversation', label: 'AI对话', icon: 'ChatDotRound', path: '/chat/conversation' },
|
||||
{ name: 'image', label: 'AI图片', icon: 'Picture', path: '/chat/image' },
|
||||
{ name: 'video', label: 'AI视频', icon: 'VideoCamera', path: '/chat/video' },
|
||||
{ name: 'monitor', label: 'AI智能体', icon: 'Monitor', path: '/chat/agent' },
|
||||
];
|
||||
|
||||
// 当前激活的菜单
|
||||
|
||||
@@ -34,7 +34,7 @@ const modelTypeOptions = ref<ModelTypeOption[]>([]);
|
||||
const apiTypeOptions = ref<ModelApiTypeOption[]>([]);
|
||||
|
||||
function goToMonitor() {
|
||||
window.open('http://data.ccnetcore.com:91/', '_blank');
|
||||
window.open('http://data.ccnetcore.com:91/?period=24h', '_blank');
|
||||
}
|
||||
|
||||
async function fetchModelList() {
|
||||
|
||||
@@ -32,7 +32,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'chatConversation',
|
||||
component: () => import('@/pages/chat/conversation/index.vue'),
|
||||
meta: {
|
||||
title: 'AI对话',
|
||||
title: '意心Ai-AI对话',
|
||||
isDefaultChat: true,
|
||||
},
|
||||
},
|
||||
@@ -41,7 +41,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'chatConversationWithId',
|
||||
component: () => import('@/pages/chat/conversation/index.vue'),
|
||||
meta: {
|
||||
title: 'AI对话',
|
||||
title: '意心Ai-AI对话',
|
||||
isDefaultChat: false,
|
||||
},
|
||||
},
|
||||
@@ -50,7 +50,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'chatImage',
|
||||
component: () => import('@/pages/chat/image/index.vue'),
|
||||
meta: {
|
||||
title: '图片生成',
|
||||
title: '意心Ai-AI图片',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -58,7 +58,15 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'chatVideo',
|
||||
component: () => import('@/pages/chat/video/index.vue'),
|
||||
meta: {
|
||||
title: '视频生成',
|
||||
title: '意心Ai-AI视频',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'agent',
|
||||
name: 'monitor',
|
||||
component: () => import('@/pages/chat/agent/index.vue'),
|
||||
meta: {
|
||||
title: '意心Ai-AI智能体',
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -70,7 +78,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'products',
|
||||
component: () => import('@/pages/products/index.vue'),
|
||||
meta: {
|
||||
title: '产品页面',
|
||||
title: '意心Ai-产品页面',
|
||||
keepAlive: 0,
|
||||
isDefaultChat: false,
|
||||
layout: 'blankPage',
|
||||
@@ -83,7 +91,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'modelLibrary',
|
||||
component: () => import('@/pages/modelLibrary/index.vue'),
|
||||
meta: {
|
||||
title: '模型库',
|
||||
title: '意心Ai-模型库',
|
||||
keepAlive: 0,
|
||||
isDefaultChat: false,
|
||||
layout: 'default',
|
||||
@@ -96,7 +104,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'payResult',
|
||||
component: () => import('@/pages/payResult/index.vue'),
|
||||
meta: {
|
||||
title: '支付结果',
|
||||
title: '意心Ai-支付结果',
|
||||
keepAlive: 0,
|
||||
isDefaultChat: false,
|
||||
layout: 'blankPage',
|
||||
@@ -109,7 +117,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'activityDetail',
|
||||
component: () => import('@/pages/activity/detail.vue'),
|
||||
meta: {
|
||||
title: '活动详情',
|
||||
title: '意心Ai-活动详情',
|
||||
isDefaultChat: false,
|
||||
layout: 'blankPage',
|
||||
},
|
||||
@@ -121,7 +129,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'announcementDetail',
|
||||
component: () => import('@/pages/announcement/detail.vue'),
|
||||
meta: {
|
||||
title: '公告详情',
|
||||
title: '意心Ai-公告详情',
|
||||
isDefaultChat: false,
|
||||
layout: 'blankPage',
|
||||
},
|
||||
@@ -133,7 +141,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'console',
|
||||
component: () => import('@/pages/console/index.vue'),
|
||||
meta: {
|
||||
title: '控制台',
|
||||
title: '意心Ai-控制台',
|
||||
icon: 'Setting',
|
||||
layout: 'default',
|
||||
},
|
||||
@@ -148,7 +156,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consoleUser',
|
||||
component: () => import('@/components/userPersonalCenter/components/UserManagement.vue'),
|
||||
meta: {
|
||||
title: '用户信息',
|
||||
title: '意心Ai-用户信息',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -156,7 +164,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consoleApikey',
|
||||
component: () => import('@/components/userPersonalCenter/components/APIKeyManagement.vue'),
|
||||
meta: {
|
||||
title: 'API密钥',
|
||||
title: '意心Ai-API密钥',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -164,7 +172,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consoleRechargeLog',
|
||||
component: () => import('@/components/userPersonalCenter/components/RechargeLog.vue'),
|
||||
meta: {
|
||||
title: '充值记录',
|
||||
title: '意心Ai-充值记录',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -172,7 +180,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consoleUsage',
|
||||
component: () => import('@/components/userPersonalCenter/components/UsageStatistics.vue'),
|
||||
meta: {
|
||||
title: '用量统计',
|
||||
title: '意心Ai-用量统计',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -180,7 +188,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consolePremium',
|
||||
component: () => import('@/components/userPersonalCenter/components/PremiumService.vue'),
|
||||
meta: {
|
||||
title: '尊享服务',
|
||||
title: '意心Ai-尊享服务',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -188,7 +196,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consoleDailyTask',
|
||||
component: () => import('@/components/userPersonalCenter/components/DailyTask.vue'),
|
||||
meta: {
|
||||
title: '每日任务',
|
||||
title: '意心Ai-每日任务',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -196,7 +204,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consoleInvite',
|
||||
component: () => import('@/components/userPersonalCenter/components/CardFlipActivity.vue'),
|
||||
meta: {
|
||||
title: '每周邀请',
|
||||
title: '意心Ai-每周邀请',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -204,7 +212,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consoleActivation',
|
||||
component: () => import('@/components/userPersonalCenter/components/ActivationCode.vue'),
|
||||
meta: {
|
||||
title: '激活码兑换',
|
||||
title: '意心Ai-激活码兑换',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -212,7 +220,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'consoleChannel',
|
||||
component: () => import('@/pages/console/channel/index.vue'),
|
||||
meta: {
|
||||
title: '渠道商管理',
|
||||
title: '意心Ai-渠道商管理',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user