Browse Source

The component of the menu only needs to set the default value in the non-edit state

pull/164/head
cKey 5 years ago
parent
commit
b07ed843fc
  1. 8
      vueJs/src/views/container/menus/components/CreateOrUpdateMenuDialog.vue

8
vueJs/src/views/container/menus/components/CreateOrUpdateMenuDialog.vue

@ -278,10 +278,10 @@ export default class CreateOrUpdateMenuDialog extends Vue {
if (layout) { if (layout) {
if (!this.isEdit) { if (!this.isEdit) {
this.menu.meta = {} this.menu.meta = {}
} if (!this.parentId) {
if (!this.parentId) { // ,
// , this.menu.component = layout.path
this.menu.component = layout.path }
} }
DataService DataService
.get(layout.dataId) .get(layout.dataId)

Loading…
Cancel
Save