添加路由

This commit is contained in:
dong.ai
2025-09-24 15:45:12 +08:00
committed by joshen
parent 8f959dc172
commit 6cb0c50e63
2 changed files with 919 additions and 895 deletions

View File

@@ -3,11 +3,8 @@
<div style="margin-left: 21px">
<a-breadcrumb>
<a-breadcrumb-item v-for="(value, index) in list" :key="index">
<router-link
:to="value.href ? value.href : ''"
:style="{ display: value.href ? 'inline-block' : 'none' }"
>{{ value.name }}</router-link
>
<router-link :to="value.href ? value.href : ''" :style="{ display: value.href ? 'inline-block' : 'none' }">{{
value.name }}</router-link>
<span :style="{ display: value.href ? 'none' : 'inline-block' }">{{
value.name
}}</span>
@@ -582,6 +579,18 @@
}
];
}
if (
n.indexOf("/aiCallLog") !== -1 ||
n.indexOf("/AICallLog") !== -1
) {
state.list = [
{
name: "案例",
}, {
name: 'AI调用日志'
}
];
}
if (
n.indexOf("/gratefulnotice") !== -1 ||
n.indexOf("/GratefulNotice") !== -1
@@ -915,12 +924,14 @@
height: 60px;
display: flex;
align-items: center;
.el-breadcrumb__inner.is-link {
font-size: 14px;
font-weight: 400;
color: #878b92 !important;
line-height: 36px;
}
.el-breadcrumb__inner {
font-size: 14px;
font-weight: 400;

View File

@@ -292,6 +292,13 @@
}"></span>
<router-link to="/caserecommended">案例推荐</router-link>
</a-menu-item>
<a-menu-item key="sub12-3" v-if="checkMenu('aiCallLog')">
<span :class="{
circleActive: selectedKeys[0] === 'sub12-2' ? true : false,
circle: selectedKeys[0] === 'sub12-3' ? false : true,
}"></span>
<router-link to="/aiCallLog">AI调用日志</router-link>
</a-menu-item>
</a-sub-menu>
<!-- 教师专区 -->
<a-sub-menu key="sub22" @titleClick="titleClick" v-if="
@@ -910,6 +917,12 @@ export default {
selectedKeys: "sub12-2",
pagename: "案例推荐",
},
{
href: "/aiCallLog",
openKeys: "sub12",
selectedKeys: "sub12-3",
pagename: "AI调用日志",
},
{
href: "/gratefulnotice",
openKeys: "sub22",