This commit is contained in:
jxxghp
2023-06-25 07:13:35 +08:00
parent 98db4eb853
commit 00dcc06235
7 changed files with 40 additions and 14 deletions
@@ -79,7 +79,7 @@ import UserProfile from '@/layouts/components/UserProfile.vue'
<VerticalNavLink <VerticalNavLink
:item="{ :item="{
title: '推荐', title: '推荐',
icon: 'mdi-movie-star', icon: 'mdi-table-star',
to: '/ranking', to: '/ranking',
}" }"
/> />
@@ -87,8 +87,8 @@ import UserProfile from '@/layouts/components/UserProfile.vue'
<VerticalNavLink <VerticalNavLink
:item="{ :item="{
title: '资源搜索', title: '资源搜索',
icon: 'mdi-table', icon: 'mdi-magnify',
to: '/resources', to: '/resource',
}" }"
/> />
@@ -133,7 +133,7 @@ import UserProfile from '@/layouts/components/UserProfile.vue'
}" }"
/> />
<!-- 👉 用户设置 --> <!-- 👉 设置 -->
<VerticalNavSectionTitle <VerticalNavSectionTitle
:item="{ :item="{
heading: '设置', heading: '设置',
@@ -143,14 +143,21 @@ import UserProfile from '@/layouts/components/UserProfile.vue'
:item="{ :item="{
title: '站点管理', title: '站点管理',
icon: 'mdi-web', icon: 'mdi-web',
to: '/sites', to: '/site',
}"
/>
<VerticalNavLink
:item="{
title: '插件',
icon: 'mdi-apps',
to: '/plugin',
}" }"
/> />
<VerticalNavLink <VerticalNavLink
:item="{ :item="{
title: '设置', title: '设置',
icon: 'mdi-cog-outline', icon: 'mdi-cog-outline',
to: '/account-settings', to: '/account-setting',
}" }"
/> />
</template> </template>
+14 -2
View File
@@ -106,10 +106,10 @@ onMounted(() => {
<template> <template>
<div <div
class="auth-wrapper d-flex align-center justify-center pa-4" class="auth-wrapper d-flex align-center justify-center pa-4 fade-in"
:style="{ backgroundImage: `url(${backgroundImageUrl})` }" :style="{ backgroundImage: `url(${backgroundImageUrl})` }"
> >
<VCard class="auth-card pa-4 pt-7"> <VCard class="auth-card pa-7">
<VCardItem class="justify-center"> <VCardItem class="justify-center">
<template #prepend> <template #prepend>
<div class="d-flex"> <div class="d-flex">
@@ -190,4 +190,16 @@ onMounted(() => {
<style lang="scss"> <style lang="scss">
@use "@core/scss/pages/page-auth.scss"; @use "@core/scss/pages/page-auth.scss";
.fade-in {
animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style> </style>
+13 -6
View File
@@ -23,8 +23,8 @@ const router = createRouter({
}, },
}, },
{ {
path: 'resources', path: 'resource',
component: () => import('../pages/resources.vue'), component: () => import('../pages/resource.vue'),
meta: { meta: {
requiresAuth: true, requiresAuth: true,
}, },
@@ -58,15 +58,22 @@ const router = createRouter({
}, },
}, },
{ {
path: 'sites', path: 'site',
component: () => import('../pages/sites.vue'), component: () => import('../pages/site.vue'),
meta: { meta: {
requiresAuth: true, requiresAuth: true,
}, },
}, },
{ {
path: 'account-settings', path: 'plugin',
component: () => import('../pages/account-settings.vue'), component: () => import('../pages/plugin.vue'),
meta: {
requiresAuth: true,
},
},
{
path: 'account-setting',
component: () => import('../pages/account-setting.vue'),
meta: { meta: {
requiresAuth: true, requiresAuth: true,
}, },