Skip to content

Commit

Permalink
fix sidebar menu in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
pycook committed Dec 23, 2019
1 parent e1e5307 commit 6089039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cmdb-ui/src/layouts/BasicLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
>
<side-menu
mode="inline"
:menus="menus"
:menus="sideBarMenu"
:theme="navTheme"
:collapsed="false"
:collapsible="true"
Expand Down Expand Up @@ -86,8 +86,7 @@ export default {
data () {
return {
production: config.production,
collapsed: false,
menus: []
collapsed: false
}
},
computed: {
Expand Down
2 changes: 1 addition & 1 deletion cmdb-ui/src/views/acl/module/addRoleRelationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
>
<a-select name="otherID" :filterOption="filterOption" v-decorator="['otherID', {rules: [{ required: true, message: '请选择另一个角色'}]} ]">
<template v-for="role in allRoles">
<a-select-option v-if="role.id != current_record.id" :key="role.id">{{ role.name }}</a-select-option>
<a-select-option v-if="role.id != current_record.id" :key="role.id">{{ role.name }}</a-select-option>
</template>
</a-select>
</a-form-item>
Expand Down

0 comments on commit 6089039

Please sign in to comment.