加入“关于”页面

This commit is contained in:
2021-05-04 18:49:30 +08:00
parent e4a9f360bd
commit 44548744ac
3 changed files with 105 additions and 0 deletions

View File

@@ -79,6 +79,11 @@ export default {
id: 'settings',
label: '设置',
routeName: 'Settings'
},
{
id: 'about',
label: '关于',
routeName: 'About'
}
],
// 显示下拉菜单

View File

@@ -22,6 +22,11 @@ const routes = [
path: '/settings',
name: 'Settings',
component: () => import('@/views/Settings.vue')
},
{
path: '/about',
name: 'About',
component: () => import('@/views/About.vue')
}
];

95
src/views/About.vue Normal file
View File

@@ -0,0 +1,95 @@
<template>
<el-container class="about">
<div class="wrapper shadow-2">
<div class="text">
<div class="title">简介</div>
<div class="content">
<p>一个多功能的网址导航绿色无广告</p>
<p>当前版本2.0.0</p>
</div>
</div>
<div class="text">
<div class="title">开发人员</div>
<div class="content">
<p>Frost-ZX</p>
</div>
</div>
<div class="text">
<div class="title">注意事项</div>
<div class="content">
<p>部分链接由于不能及时更新可能已过期不存在指向了错误的网站等访问时请注意</p>
<p>若您在使用时发现相关情况欢迎进行反馈</p>
</div>
</div>
<div class="text">
<div class="title">GitHub</div>
<div class="content">
<p>
<el-link :href="info.github" target="_blank" type="primary">{{ info.github }}</el-link>
</p>
</div>
</div>
</div>
</el-container>
</template>
<script>
export default {
name: 'About',
data() {
return {
utils: this.$root.utils,
info: {
github: 'https://github.com/Frost-ZX/frost-navigation'
}
}
},
beforeRouteEnter(to, from, next) {
next(vm => {
vm.utils.changeTitle('关于');
});
}
}
</script>
<style lang="less" scoped>
.about {
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem;
background-color: @colorWhite;
overflow-y: auto;
.wrapper {
padding: 1.5rem 2rem;
width: 100%;
max-width: 50rem;
background-color: #FFF;
}
.text {
padding: 0.5rem 0;
.title {
line-height: 2.5rem;
font-size: 1rem;
}
.content {
line-height: 1.8rem;
font-size: 0.85rem;
color: #888;
/deep/ .el-link {
font-size: inherit;
}
}
}
}
</style>