后期修改完善,上线版本
This commit is contained in:
@ -44,13 +44,14 @@ export default {
|
||||
name: "Footer",
|
||||
data() {
|
||||
return {
|
||||
first: [{
|
||||
name: 'Home',
|
||||
path: '/home/list',
|
||||
meta: {
|
||||
parent: 'Home',
|
||||
first: [
|
||||
{
|
||||
name: 'Home',
|
||||
path: '/home/list',
|
||||
meta: {
|
||||
parent: 'Home',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AI Daily News',
|
||||
path: '/dailyNews',
|
||||
@ -59,15 +60,10 @@ export default {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'AI Hub',
|
||||
name: 'AI Launches',
|
||||
path: '/launches',
|
||||
meta: {
|
||||
parent: 'Hub',
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Learn',
|
||||
meta: {
|
||||
parent: 'Learn',
|
||||
parent: 'Launches',
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -99,11 +95,6 @@ export default {
|
||||
goto(path) {
|
||||
this.$router.push(path);
|
||||
},
|
||||
/**
|
||||
* 判断当前导航项是否应该被选中
|
||||
* @param {Object} item 导航项
|
||||
* @returns {Boolean} 是否选中
|
||||
*/
|
||||
isParentMatch(item) {
|
||||
// 首先检查路径匹配逻辑,保持向后兼容性
|
||||
const pathMatch = item.path && item.path === this.$route.path;
|
||||
@ -159,7 +150,7 @@ export default {
|
||||
font-size: $larg-font-size;
|
||||
color: $main-color;
|
||||
font-weight: bold;
|
||||
font-family: 'Poppins-Bold', serif;
|
||||
font-family: 'Poppins-Bold';
|
||||
}
|
||||
}
|
||||
|
||||
@ -172,14 +163,14 @@ export default {
|
||||
|
||||
.bottom-span {
|
||||
color: $grey-color;
|
||||
font-family: 'Poppins-Regular', serif;
|
||||
font-family: 'Poppins-Regular';
|
||||
}
|
||||
|
||||
.navigation-bottom {
|
||||
margin-bottom: 14px;
|
||||
span {
|
||||
display: inline-block;
|
||||
font-family: 'Poppins-Medium', serif;
|
||||
font-family: 'Poppins-Medium';
|
||||
cursor: pointer;
|
||||
margin-left: 30px;
|
||||
&:hover {
|
||||
|
||||
Reference in New Issue
Block a user