fix(llm):路由bug
This commit is contained in:
parent
22868f9efc
commit
265c6e3d7a
@ -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 });
|
||||
|
||||
@ -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',
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user