代码调整

This commit is contained in:
dong 2022-08-24 14:54:46 +08:00
parent 0452a4fee7
commit 7b94333a16
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,6 @@
v-if="inputVisible"
ref="saveTagInput"
v-model="inputValue"
autofocus
class="input-new-tag"
size="small"
@keyup.enter.native="handleInputConfirm"
@ -99,6 +98,9 @@ export default {
},
showInput() {
this.inputVisible = true;
this.$nextTick(_ => {
this.$refs.saveTagInput.$refs.input.focus();
});
},
handleInputConfirm() {
const inputValue = this.inputValue;

View File

@ -182,7 +182,7 @@ export default {
updateTrainingStep(this.editData.id, list).then(res => {
console.log('保存步骤成功!', res);
this.$message.success('保存步骤成功!');
this.doClose();
// this.doClose();
}).catch(err => {
console.log('保存步骤失败', err);
this.$message.error('保存步骤失败');