review:【antd】【mp】代码评审

This commit is contained in:
YunaiV
2025-11-17 13:57:41 +08:00
parent 6f0273ab4e
commit f11b7aea69
21 changed files with 101 additions and 140 deletions

View File

@@ -1,5 +1,4 @@
<script lang="ts" setup>
// DONE @hw名字可以缩写成 previewer.vue文件名
import type { Menu } from './types';
import { computed } from 'vue';
@@ -44,7 +43,6 @@ function addMenu() {
/** 添加横向二级菜单parent 表示要操作的父菜单 */
function addSubMenu(i: number, parent: any) {
// DONE @hw可以 inline 掉。idea 或者 vscode 的一些告警,处理掉会更干净一些。
parent.children[parent.children.length] = {
name: '子菜单名称',
reply: {