From d39232a91f7b96d89876ed999b6e223a9bee9b82 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 22 十月 2026 13:09:04 +0800
Subject: [PATCH] feat(ai): 添加AI功能总开关及智能体导入功能
---
src/views/dashboard/analytics/index.vue | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/views/dashboard/analytics/index.vue b/src/views/dashboard/analytics/index.vue
index 907fac8..90988e2 100644
--- a/src/views/dashboard/analytics/index.vue
+++ b/src/views/dashboard/analytics/index.vue
@@ -3,6 +3,7 @@
import { useRouter } from 'vue-router';
import { Page } from '@vben/common-ui';
+import { isAiEnable } from '@vben/hooks';
import { Col, Row } from 'ant-design-vue';
@@ -83,7 +84,7 @@
<!-- AI 鏅鸿兘鍒嗘瀽 -->
<AiInsights
- v-if="canViewHome && canNavigate('MesProWorkOrder')"
+ v-if="canViewHome && canNavigate('MesProWorkOrder') && isAiEnable()"
:active-order-count="summary.workOrderActiveCount"
@navigate="handleNavigate"
/>
--
Gitblit v1.9.3