Skip to content

Commit

Permalink
fix: 脚本执行去重做点击执行无效 #3438
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 31497
  • Loading branch information
hLinx committed Feb 26, 2025
1 parent 5c123fb commit a7f6fb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/frontend/src/components/jb-form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
*/
validate() {
return this.$refs.bkForm.validate().catch((error) => {
console.dir(error);
this.$refs.jobForm.querySelector('.jb-form-item.is-error').scrollIntoView();
return Promise.reject(error);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</bk-form-item>
</template>
<script setup>
import _ from 'lodash';
import { computed, ref, watch } from 'vue';
import { useI18n } from '@/i18n';
Expand Down Expand Up @@ -73,7 +74,7 @@
];
watch(() => props.formData, () => {
isCustom.value = props.formData[props.field] !== undefined;
isCustom.value = _.isString(props.formData[props.field]);
}, {
immediate: true,
deep: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
});
});
})
.catch(() => {
.finally(() => {
this.isSubmiting = false;
});
},
Expand Down

0 comments on commit a7f6fb2

Please sign in to comment.