diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/ChannelService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/ChannelService.cs
index 66f1bc0e..750603d4 100644
--- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/ChannelService.cs
+++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/ChannelService.cs
@@ -14,7 +14,7 @@ namespace Yi.Framework.AiHub.Application.Services;
///
/// 渠道商管理服务实现
///
-[Authorize]
+[Authorize(Roles = "admin")]
public class ChannelService : ApplicationService, IChannelService
{
private readonly ISqlSugarRepository _appRepository;
diff --git a/Yi.Ai.Vue3/src/layouts/components/Header/index.vue b/Yi.Ai.Vue3/src/layouts/components/Header/index.vue
index 78f16686..54b4af58 100644
--- a/Yi.Ai.Vue3/src/layouts/components/Header/index.vue
+++ b/Yi.Ai.Vue3/src/layouts/components/Header/index.vue
@@ -76,10 +76,13 @@ function handleConsoleClick(e: MouseEvent) {
AI对话
- 图片生成
+ AI图片
- 视频生成
+ AI视频
+
+
+ AI智能体
diff --git a/Yi.Ai.Vue3/src/pages/chat/agent/index.vue b/Yi.Ai.Vue3/src/pages/chat/agent/index.vue
new file mode 100644
index 00000000..a465c672
--- /dev/null
+++ b/Yi.Ai.Vue3/src/pages/chat/agent/index.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Yi.Ai.Vue3/src/pages/chat/index.vue b/Yi.Ai.Vue3/src/pages/chat/index.vue
index e605ff25..086cfe43 100644
--- a/Yi.Ai.Vue3/src/pages/chat/index.vue
+++ b/Yi.Ai.Vue3/src/pages/chat/index.vue
@@ -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' },
];
// 当前激活的菜单
diff --git a/Yi.Ai.Vue3/src/pages/modelLibrary/index.vue b/Yi.Ai.Vue3/src/pages/modelLibrary/index.vue
index 1ce311a7..a7b76079 100644
--- a/Yi.Ai.Vue3/src/pages/modelLibrary/index.vue
+++ b/Yi.Ai.Vue3/src/pages/modelLibrary/index.vue
@@ -34,7 +34,7 @@ const modelTypeOptions = ref([]);
const apiTypeOptions = ref([]);
function goToMonitor() {
- window.open('http://data.ccnetcore.com:91/', '_blank');
+ window.open('http://data.ccnetcore.com:91/?period=24h', '_blank');
}
async function fetchModelList() {
diff --git a/Yi.Ai.Vue3/src/routers/modules/staticRouter.ts b/Yi.Ai.Vue3/src/routers/modules/staticRouter.ts
index 33d29cee..6c38b4e7 100644
--- a/Yi.Ai.Vue3/src/routers/modules/staticRouter.ts
+++ b/Yi.Ai.Vue3/src/routers/modules/staticRouter.ts
@@ -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-渠道商管理',
},
},
],