mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
添加路由
This commit is contained in:
@@ -3,11 +3,8 @@
|
|||||||
<div style="margin-left: 21px">
|
<div style="margin-left: 21px">
|
||||||
<a-breadcrumb>
|
<a-breadcrumb>
|
||||||
<a-breadcrumb-item v-for="(value, index) in list" :key="index">
|
<a-breadcrumb-item v-for="(value, index) in list" :key="index">
|
||||||
<router-link
|
<router-link :to="value.href ? value.href : ''" :style="{ display: value.href ? 'inline-block' : 'none' }">{{
|
||||||
:to="value.href ? value.href : ''"
|
value.name }}</router-link>
|
||||||
:style="{ display: value.href ? 'inline-block' : 'none' }"
|
|
||||||
>{{ value.name }}</router-link
|
|
||||||
>
|
|
||||||
<span :style="{ display: value.href ? 'none' : 'inline-block' }">{{
|
<span :style="{ display: value.href ? 'none' : 'inline-block' }">{{
|
||||||
value.name
|
value.name
|
||||||
}}</span>
|
}}</span>
|
||||||
@@ -582,6 +579,18 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
n.indexOf("/aiCallLog") !== -1 ||
|
||||||
|
n.indexOf("/AICallLog") !== -1
|
||||||
|
) {
|
||||||
|
state.list = [
|
||||||
|
{
|
||||||
|
name: "案例",
|
||||||
|
}, {
|
||||||
|
name: 'AI调用日志'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
n.indexOf("/gratefulnotice") !== -1 ||
|
n.indexOf("/gratefulnotice") !== -1 ||
|
||||||
n.indexOf("/GratefulNotice") !== -1
|
n.indexOf("/GratefulNotice") !== -1
|
||||||
@@ -915,12 +924,14 @@
|
|||||||
height: 60px;
|
height: 60px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.el-breadcrumb__inner.is-link {
|
.el-breadcrumb__inner.is-link {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #878b92 !important;
|
color: #878b92 !important;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-breadcrumb__inner {
|
.el-breadcrumb__inner {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
@@ -292,6 +292,13 @@
|
|||||||
}"></span>
|
}"></span>
|
||||||
<router-link to="/caserecommended">案例推荐</router-link>
|
<router-link to="/caserecommended">案例推荐</router-link>
|
||||||
</a-menu-item>
|
</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>
|
||||||
<!-- 教师专区 -->
|
<!-- 教师专区 -->
|
||||||
<a-sub-menu key="sub22" @titleClick="titleClick" v-if="
|
<a-sub-menu key="sub22" @titleClick="titleClick" v-if="
|
||||||
@@ -910,6 +917,12 @@ export default {
|
|||||||
selectedKeys: "sub12-2",
|
selectedKeys: "sub12-2",
|
||||||
pagename: "案例推荐",
|
pagename: "案例推荐",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
href: "/aiCallLog",
|
||||||
|
openKeys: "sub12",
|
||||||
|
selectedKeys: "sub12-3",
|
||||||
|
pagename: "AI调用日志",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
href: "/gratefulnotice",
|
href: "/gratefulnotice",
|
||||||
openKeys: "sub22",
|
openKeys: "sub22",
|
||||||
|
|||||||
Reference in New Issue
Block a user