fix: asset acl priority required

This commit is contained in:
feng626
2022-03-15 11:28:20 +08:00
committed by Jiangjie.Bai
parent 9703c335ff
commit ebbc5ceb3e

View File

@@ -4,6 +4,7 @@
<script> <script>
import GenericCreateUpdatePage from '@/layout/components/GenericCreateUpdatePage' import GenericCreateUpdatePage from '@/layout/components/GenericCreateUpdatePage'
import rules from '@/components/DataForm/rules'
export default { export default {
name: 'AclCreateUpdate', name: 'AclCreateUpdate',
components: { components: {
@@ -35,6 +36,9 @@ export default {
[this.$t('common.Other'), ['is_active', 'comment']] [this.$t('common.Other'), ['is_active', 'comment']]
], ],
fieldsMeta: { fieldsMeta: {
priority: {
rules: [rules.Required]
},
assets: { assets: {
fields: ['hostname_group', 'ip_group'] fields: ['hostname_group', 'ip_group']
}, },