feat:【mall 商城】商城首页的迁移【antd】30%:shortcut-card、operation-data-card.vue

This commit is contained in:
YunaiV
2025-10-19 10:25:04 +08:00
parent 95fffb8af0
commit 7b8a7efc5b
2 changed files with 31 additions and 30 deletions

View File

@@ -1,10 +1,10 @@
<script lang="ts" setup>
import { useRouter } from 'vue-router';
import { Card } from 'ant-design-vue';
import { IconifyIcon } from '@vben/icons';
import { Card } from 'ant-design-vue';
/** 快捷入口卡片 */
defineOptions({ name: 'ShortcutCard' });
@@ -62,14 +62,11 @@ const menuList = [
},
];
/**
* 跳转到菜单对应页面
*
* @param routerName 路由页面组件的名称
*/
const handleMenuClick = (routerName: string) => {
/** 跳转到菜单对应页面 */
// TODO @xingyu貌似通过 name 的方式,都无法跳转,找不到路由?
function handleMenuClick(routerName: string) {
router.push({ name: routerName });
};
}
</script>
<template>
@@ -92,4 +89,3 @@ const handleMenuClick = (routerName: string) => {
</div>
</Card>
</template>