feat:【antd】【mp】mp 的代码评审(menu)

This commit is contained in:
YunaiV
2025-11-20 21:36:36 +08:00
parent 53ef992d1e
commit 5c9a86c0f0
7 changed files with 15 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ import ReplySelect from '#/views/mp/components/wx-reply/wx-reply.vue';
import menuOptions from './menuOptions';
// TODO @hw去掉 menu- 前缀
const props = defineProps<{
accountId: number;
isParent: boolean;
@@ -40,6 +41,7 @@ const menu = computed({
},
});
const showNewsDialog = ref(false);
// TODO @hw这个 reset 还有用么?
const hackResetWxReplySelect = ref(false);
const isLeave = computed<boolean>(() => !(menu.value.children?.length > 0));
@@ -51,6 +53,7 @@ watch(menu, () => {
});
// ======================== 菜单编辑(素材选择) ========================
/** 选择素材 */
function selectMaterial(item: any) {
const articleId = item.articleId;