We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce00ab commit d9ca9baCopy full SHA for d9ca9ba
src/views/Authorization/Menu/components/Write.vue
@@ -8,6 +8,7 @@ import { getMenuListApi } from '@/api/menu'
8
import { ElTag } from 'element-plus'
9
import AddButtonPermission from './AddButtonPermission.vue'
10
import { BaseButton } from '@/components/Button'
11
+import { cloneDeep } from 'lodash-es'
12
13
const { t } = useI18n()
14
@@ -271,8 +272,9 @@ const cacheComponent = ref('')
271
272
273
watch(
274
() => props.currentRow,
- (currentRow) => {
275
- if (!currentRow) return
+ (value) => {
276
+ if (!value) return
277
+ const currentRow = cloneDeep(value)
278
cacheComponent.value = currentRow.type === 1 ? currentRow.component : ''
279
if (currentRow.parentId === 0) {
280
setSchema([
0 commit comments