A:增加目录
This commit is contained in:
1 parent
6ed3410601
commit
c6b9fbc6f3
5 files changed
+28
-2
No files matched your search
@@ -83,7 +83,9 @@ import {
|
||||
CalendarOutline,
|
||||
PricetagOutline,
|
||||
LibraryOutline,
|
||||
SettingsOutline, EyeOffOutline
|
||||
SettingsOutline,
|
||||
EyeOffOutline,
|
||||
FolderOutline,
|
||||
} from '@vicons/ionicons5'
|
||||
import { menuOptions, type MenuOption, type MenuItem, type MenuGroup } from '@/types/menu'
|
||||
|
||||
@@ -102,6 +104,7 @@ const iconMap = {
|
||||
'library-outline': LibraryOutline,
|
||||
'settings-outline': SettingsOutline,
|
||||
'eye-off-outline': EyeOffOutline,
|
||||
'folder-outline': FolderOutline,
|
||||
}
|
||||
|
||||
// 渲染图标
|
||||
|
||||
@@ -25,6 +25,12 @@ const router = createRouter({
|
||||
component: () => import('@/views/PeopleView.vue'),
|
||||
meta: { title: '人物' }
|
||||
},
|
||||
{
|
||||
path: '/field',
|
||||
name: 'field',
|
||||
component: () => import('@/views/FieldView.vue'),
|
||||
meta: { title: '文件夹' }
|
||||
},
|
||||
|
||||
{
|
||||
path: '/library',
|
||||
|
||||
@@ -34,6 +34,12 @@ export const menuOptions: MenuOption[] = [
|
||||
icon: 'people-outline',
|
||||
path: '/people',
|
||||
},
|
||||
{
|
||||
key: 'field',
|
||||
label: '文件夹',
|
||||
icon: 'folder-outline',
|
||||
path: '/field',
|
||||
},
|
||||
// 媒体分组
|
||||
{
|
||||
key: 'media',
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
文件夹
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -31,7 +31,7 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 5175, // 设置你想要的端口号
|
||||
port: 3049, // 设置你想要的端口号
|
||||
host: false, // 可选:允许外部访问
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user