diff --git a/src/views/system/menu/components/Menu.vue b/src/views/system/menu/components/Menu.vue index 93e1d038..ddac90cd 100644 --- a/src/views/system/menu/components/Menu.vue +++ b/src/views/system/menu/components/Menu.vue @@ -49,7 +49,7 @@ - + @@ -238,7 +238,7 @@ async function handleAdd(row: any) { if (row.id) { // 行点击新增 state.formData.parentId = row.id; - if (row.id == 0) { + if (row.id == '0') { state.formData.component = "Layout"; } else { state.formData.component = ""; @@ -257,13 +257,11 @@ async function handleAdd(row: any) { async function handleUpdate(row: any) { await loadMenuData(); - console.log('menuop',state.menuOptions) state.dialog = { title: "修改菜单", visible: true }; const id = row.id || state.ids; - console.log('id',id) getMenuDetail(id).then(({ data }) => { state.formData = data; // 判断是否外部链接