Skip to content

Commit

Permalink
登录校验码问题
Browse files Browse the repository at this point in the history
  • Loading branch information
337547038 committed Jul 30, 2024
1 parent e17b2f8 commit aba4db6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/form/formItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
:disabled="disabledEdit"
:config="config as any"
/>
<DiyCode v-if="['tinymce','component'].includes(data.type)"/>
<DiyCode v-if="['tinymce'].includes(data.type)" />
<component
v-if="['cascader', 'treeSelect'].includes(data.type)"
:is="currentComponent"
Expand All @@ -123,15 +123,16 @@
'colorPicker',
'timePicker',
'datePicker',
'expand-user'
'expand-user',
'component'
].includes(data.type)
"
:is="currentComponent"
v-bind="control"
:disabled="disabledEdit"
v-model="value"
/>
<!-- <template v-if="data.type === 'tinymce'">
<!-- <template v-if="data.type === 'tinymce'">
&lt;!&ndash; 设计模式时拖动会出现异常,设计模式暂用图片代替&ndash;&gt;
<tinymce-edit
v-bind="control"
Expand Down
4 changes: 2 additions & 2 deletions src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{ type: 'required', message: '请输入密码', trigger: 'blur' }
]
},
/*{
{
type: 'component',
control: {
modelValue: '',
Expand All @@ -77,7 +77,7 @@
customRules: [
{ type: 'required', message: '请输入验证码', trigger: 'blur' }
]
},*/
},
{
type: 'button',
control: { label: '登录', type: 'primary', key: 'submit' }
Expand Down

0 comments on commit aba4db6

Please sign in to comment.