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