fix(llm):路由bug

This commit is contained in:
PZ688 2025-06-17 17:20:04 +08:00
parent 22868f9efc
commit 265c6e3d7a
3 changed files with 22 additions and 10 deletions

View File

@ -31,6 +31,11 @@
</el-dropdown-menu>
</template>
</el-dropdown>
<div class="layout-navbars-breadcrumb-user-icon" @click="onChatClick">
<el-icon :title="$t('message.user.chat')">
<ele-ChatDotRound />
</el-icon>
</div>
<div class="layout-navbars-breadcrumb-user-icon" @click="onSearchClick">
<el-icon :title="$t('message.user.title2')">
<ele-Search />
@ -253,6 +258,13 @@ const onLanguageChange = (lang: string) => {
refreshCurrentTabpage();
};
//
const onChatClick = () => {
router.push({
path: '/llm/chat',
});
};
//
const refreshCurrentTabpage = () => {
mittBus.emit('onCurrentContextmenuClick', { ...routeStores.currentRoute, contextMenuClickId: 0 });

View File

@ -49,6 +49,15 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
},
children: [],
},
{
path: '/llm/chat',
name: 'chat',
component: () => import('/@/views/chat/index.vue'),
meta: {
title: 'AI对话',
isKeepAlive: true,
}
},
{
path: '/platform/job/dashboard',
name: 'jobDashboard',
@ -76,16 +85,6 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
icon: 'ele-View',
},
},
, {
path: '/llm/chat',
name: 'chat',
component: () => import('/@/views/chat/index.vue'),
meta: {
title: 'AI对话',
isKeepAlive: true,
icon: 'ele-View',
}
},
];
/**

View File

@ -86,6 +86,7 @@ export const useUserInfo = defineStore('userInfo', {
orgId: d.orgId,
orgName: d.orgName,
posName: d.posName,
posId: d.posId,
roles: d.roleIds,
authApiList: d.apis,
lastChangePasswordTime: d.lastChangePasswordTime,