|
@@ -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;
|