Quellcode durchsuchen

feat: ai对话入口图标

hotchicken1996 vor 3 Wochen
Ursprung
Commit
8120d0e62f
2 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  1. BIN
      client/src/assets/imgs/ai/robot.png
  2. 16 0
      client/src/views/OaSystem/oaLayout/menus.vue

BIN
client/src/assets/imgs/ai/robot.png


+ 16 - 0
client/src/views/OaSystem/oaLayout/menus.vue

@@ -45,6 +45,7 @@
           <MenusActive :menuData="menuData" v-if="mouseenterIndex == index" />
         </div>
       </el-menu>
+      <img :src="AIBtn" alt="" class="ai-btn" @click="handleGoToAi" />
     </div>
   </div>
 </template>
@@ -62,6 +63,7 @@ import { getAttendCount } from '@/api/oa/index'
 import subscribe from '@/utils/Subscribe'
 import request from '@/config/axios'
 import { useUserStoreWithOut } from '@/store/modules/user'
+import AIBtn from '@/assets/imgs/ai/robot.png'
 
 defineOptions({ name: 'Header' })
 const { t } = useI18n()
@@ -123,6 +125,10 @@ const loginOut = () => {
     })
     .catch(() => {})
 }
+const handleGoToAi = (): void => {
+  push('/OaSystem/aiQA')
+}
+
 const userImgClick = () => {
   push('/oaSystem/mineCenter')
 }
@@ -331,6 +337,16 @@ onMounted(() => {
   .menus-tabs {
     width: 100%;
     height: calc(100% - 250px);
+    position: relative;
+
+    .ai-btn {
+      position: absolute;
+      bottom: 30px;
+      left: 50%;
+      transform: translateX(-50%);
+      z-index: 9;
+      cursor: pointer;
+    }
 
     .menuDiv {
       position: relative;