Commit fd0a3eeb authored by tyyin lan's avatar tyyin lan

feat: 轮播图管理页面

parent 55b357aa
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_4939750_9nzhie7u3y.css" /> <link rel="stylesheet" href="//at.alicdn.com/t/c/font_4939750_9hx3rkhtkzu.css" />
<title>%APP_NAME%</title> <title>%APP_NAME%</title>
</head> </head>
......
/**
* @filename: lint-staged.config.js
* @type {import('lint-staged').Configuration}
*/
export default { export default {
'*.md': ['prettier --write'], '*.md': ['prettier --write'],
'package.json': ['prettier --write'], 'package.json': ['prettier --write'],
......
...@@ -20,20 +20,12 @@ watch( ...@@ -20,20 +20,12 @@ watch(
}, },
) )
// function handleUpdateValue(_key: string, menuItemOption: MenuOption) {
// router.push({ name: menuItemOption.routeName })
// // menuValue.value = key
// }
function handleLogoClick() { function handleLogoClick() {
router.push({ name: 'Root' }) router.push({ name: 'Root' })
} }
function handleMenuItemClick(routeName: any) { function handleMenuItemClick(routeName: any) {
console.log('💥💥💥💥💥💥jtest💥💥💥💥💥💥') router.push({ name: routeName })
console.log(routeName)
// router.push({ name: routeName })
} }
</script> </script>
......
...@@ -23,6 +23,17 @@ export default [ ...@@ -23,6 +23,17 @@ export default [
}, },
component: Home, component: Home,
}, },
{
path: '/carousel-management',
name: 'CarouselManagement',
meta: {
rank: 1001,
title: '轮播图管理',
icon: 'icon-carousel',
},
component: () => import('@/views/carousel-management/carousel-management.vue'),
},
], ],
}, },
] as RouteRecordRaw[] ] as RouteRecordRaw[]
<script setup lang="ts"></script>
<template>
<div>轮播图管理</div>
</template>
<style lang="scss" scoped></style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment