mirror of https://github.com/halo-dev/halo-admin
pref: form validation optimization of journal edit form. (#221)
parent
e5092a027a
commit
c2864ef695
|
@ -9,7 +9,7 @@
|
||||||
slot="action"
|
slot="action"
|
||||||
title="内容将保存到页面/所有页面/日志页面"
|
title="内容将保存到页面/所有页面/日志页面"
|
||||||
>
|
>
|
||||||
<a-icon type="info-circle-o" />
|
<a-icon type="info-circle-o" class="cursor-pointer"/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
<a-form-model
|
<a-form-model
|
||||||
|
@ -52,7 +52,7 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
model: {},
|
model: {},
|
||||||
rules: {
|
rules: {
|
||||||
sourceContent: [{ required: true, message: '* 内容不能为空', trigger: ['change', 'blur'] }]
|
sourceContent: [{ required: true, message: '* 内容不能为空', trigger: ['change'] }]
|
||||||
},
|
},
|
||||||
saving: false,
|
saving: false,
|
||||||
errored: false
|
errored: false
|
||||||
|
|
Loading…
Reference in New Issue