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/mes/qc/components/ai-assistant.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/views/mes/qc/components/ai-assistant.vue b/src/views/mes/qc/components/ai-assistant.vue
index 1857e31..b099925 100644
--- a/src/views/mes/qc/components/ai-assistant.vue
+++ b/src/views/mes/qc/components/ai-assistant.vue
@@ -2,6 +2,7 @@
 import { ref } from 'vue';
 
 import { useVbenModal } from '@vben/common-ui';
+import { isAiEnable } from '@vben/hooks';
 
 import { Empty, Input, Spin } from 'ant-design-vue';
 
@@ -43,7 +44,7 @@
 </script>
 
 <template>
-  <a-button type="default" @click="modalApi.open()">
+  <a-button v-if="isAiEnable()" type="default" @click="modalApi.open()">
     璐ㄦ鍔╂墜
   </a-button>
 

--
Gitblit v1.9.3