mirror of
https://github.com/kailong321200875/vue-element-plus-admin.git
synced 2024-11-27 01:19:56 +08:00
fix: 修复菜单管理回显问题
This commit is contained in:
parent
8ce00ab247
commit
d9ca9ba5e8
@ -8,6 +8,7 @@ import { getMenuListApi } from '@/api/menu'
|
||||
import { ElTag } from 'element-plus'
|
||||
import AddButtonPermission from './AddButtonPermission.vue'
|
||||
import { BaseButton } from '@/components/Button'
|
||||
import { cloneDeep } from 'lodash-es'
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
@ -271,8 +272,9 @@ const cacheComponent = ref('')
|
||||
|
||||
watch(
|
||||
() => props.currentRow,
|
||||
(currentRow) => {
|
||||
if (!currentRow) return
|
||||
(value) => {
|
||||
if (!value) return
|
||||
const currentRow = cloneDeep(value)
|
||||
cacheComponent.value = currentRow.type === 1 ? currentRow.component : ''
|
||||
if (currentRow.parentId === 0) {
|
||||
setSchema([
|
||||
|
Loading…
Reference in New Issue
Block a user