add calendar menu

This commit is contained in:
jxxghp
2023-06-27 10:48:00 +08:00
parent f56f509f07
commit 81d0181ec2
3 changed files with 26 additions and 1 deletions

View File

@@ -112,6 +112,13 @@ import UserProfile from '@/layouts/components/UserProfile.vue'
to: '/subscribe-tv',
}"
/>
<VerticalNavLink
:item="{
title: '日历',
icon: 'mdi-calendar',
to: '/calendar',
}"
/>
<!-- 👉 整理 -->
<VerticalNavSectionTitle
:item="{

11
src/pages/calendar.vue Normal file
View File

@@ -0,0 +1,11 @@
<template>
<VCalendar ref="calendar" v-model="start" :type="type" :end="end" color="primary"></VCalendar>
</template>
<script setup lang="ts">
import { ref } from 'vue';
const start = ref('2019-01-01');
const end = ref('2019-01-06');
const type = ref('month');
</script>

View File

@@ -1,5 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router'
import store from '@/store'
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -44,6 +44,13 @@ const router = createRouter({
requiresAuth: true,
},
},
{
path: 'calendar',
component: () => import('../pages/calendar.vue'),
meta: {
requiresAuth: true,
},
},
{
path: 'downloading',
component: () => import('../pages/downloading.vue'),