Skip to content

Commit

Permalink
fix(projects): menu missing component field
Browse files Browse the repository at this point in the history
  • Loading branch information
paynezhuang committed May 22, 2024
1 parent 8f8a0ca commit 0e1c2f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/views/manage/menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ init(null);
<NDescriptionsItem :label="$t('page.manage.menu.i18nKey')">{{ showData.i18nKey }}</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.manage.menu.routeName')">{{ showData.routeName }}</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.manage.menu.routePath')">{{ showData.routePath }}</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.manage.menu.hide')">
<NDescriptionsItem :label="$t('page.manage.menu.hideInMenu')">
<NTag :type="yesOrNoTag[showData.hide]">{{ $t(yesOrNoRecord[showData.hide]) }}</NTag>
</NDescriptionsItem>
<NDescriptionsItem :label="$t('page.manage.menu.keepAlive')">
Expand Down
13 changes: 7 additions & 6 deletions src/views/manage/menu/modules/menu-operate-drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function createDefaultModel(): Model {
routeName: '',
routePath: '',
pathParam: '',
component: '',
icon: '',
iconType: '1',
layout: '',
Expand Down Expand Up @@ -267,6 +268,9 @@ watch(
<NFormItemGi span="24" :label="$t('page.manage.menu.name')" path="name">
<NInput v-model:value="model.name" :placeholder="$t('page.manage.menu.form.name')" />
</NFormItemGi>
<NFormItemGi span="24" :label="$t('page.manage.menu.routeName')" path="routeName">
<NInput v-model:value="model.routeName" :placeholder="$t('page.manage.menu.form.routeName')" />
</NFormItemGi>
<NFormItemGi span="24" :label="$t('page.manage.menu.i18nKey')" path="i18nKey">
<NInput v-model:value="model.i18nKey" :placeholder="$t('page.manage.menu.form.i18nKey')" />
</NFormItemGi>
Expand All @@ -287,21 +291,18 @@ watch(
<NSelect v-model:value="model.icon" :placeholder="$t('page.manage.menu.form.localIcon')" :options="localIconOptions" />
</template>
</NFormItemGi>
<NFormItemGi span="24" :label="$t('page.manage.menu.routeName')" path="routeName">
<NInput v-model:value="model.routeName" :placeholder="$t('page.manage.menu.form.routeName')" />
</NFormItemGi>
<NFormItemGi span="24" :label="$t('page.manage.menu.routePath')" path="routePath">
<NInput v-model:value="model.routePath" :placeholder="$t('page.manage.menu.form.routePath')" />
</NFormItemGi>
<NFormItemGi span="24" :label="$t('page.manage.menu.pathParam')" path="pathParam">
<NInput v-model:value="model.pathParam" :placeholder="$t('page.manage.menu.form.pathParam')" />
</NFormItemGi>
<NFormItemGi v-if="showLayout" span="24" :label="$t('page.manage.menu.layout')" path="layout">
<NSelect v-model:value="model.layout" :options="layoutOptions" :placeholder="$t('page.manage.menu.form.layout')" />
</NFormItemGi>
<NFormItemGi v-if="showPage" span="24" :label="$t('page.manage.menu.page')" path="page">
<NSelect v-model:value="model.page" :options="pageOptions" :placeholder="$t('page.manage.menu.form.page')" />
</NFormItemGi>
<NFormItemGi span="24" :label="$t('page.manage.menu.pathParam')" path="pathParam">
<NInput v-model:value="model.pathParam" :placeholder="$t('page.manage.menu.form.pathParam')" />
</NFormItemGi>
<NFormItemGi span="24" :label="$t('page.manage.menu.href')" path="href">
<NInput v-model:value="model.href" :placeholder="$t('page.manage.menu.form.href')" />
</NFormItemGi>
Expand Down

0 comments on commit 0e1c2f6

Please sign in to comment.