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

View File

@ -49,6 +49,15 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
}, },
children: [], children: [],
}, },
{
path: '/llm/chat',
name: 'chat',
component: () => import('/@/views/chat/index.vue'),
meta: {
title: 'AI对话',
isKeepAlive: true,
}
},
{ {
path: '/platform/job/dashboard', path: '/platform/job/dashboard',
name: 'jobDashboard', name: 'jobDashboard',
@ -76,16 +85,6 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
icon: 'ele-View', 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, orgId: d.orgId,
orgName: d.orgName, orgName: d.orgName,
posName: d.posName, posName: d.posName,
posId: d.posId,
roles: d.roleIds, roles: d.roleIds,
authApiList: d.apis, authApiList: d.apis,
lastChangePasswordTime: d.lastChangePasswordTime, lastChangePasswordTime: d.lastChangePasswordTime,