Selaa lähdekoodia

页签标题logo

CzRger 4 päivää sitten
vanhempi
commit
1fbee9e89d
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      src/router/index.ts

+ 7 - 1
src/router/index.ts

@@ -6,7 +6,7 @@ import RouterView from '@/layout/router-view.vue'
 import Layout from '@/layout/index.vue'
 import {useMenuStore} from "@/stores";
 import {login} from "@/views/smart-ask-answer/assistant/dify/common";
-
+import chatLogo from '@/views/smart-ask-answer/assistant/imgs/avatar.png'
 const routes = [
     demoRouter,
     { path: '/:pathMatch(.*)*', name: 'NotFound', component: Temp404 },
@@ -44,6 +44,12 @@ router.beforeEach((to, from , next) => {
 // }
 export const beforeInit = () => {
     if (location.pathname === (import.meta as any).env.BASE_URL + 'assistant') {
+        document.title = "“i口岸”通关小助理";
+        let link: any = document.querySelector("link[rel*='icon']") || document.createElement('link');
+        link.type = 'image/x-icon';
+        link.rel = 'shortcut icon';
+        link.href = chatLogo;
+        document.head.appendChild(link);
         const loginData = {
             email: 'guest@qq.com',
             password: 'tj123456',