|
@@ -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',
|