Skip to content

Commit

Permalink
code review:vue2 代码生成的空格问题
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Nov 27, 2023
1 parent 9d38106 commit f65a367
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/views/infra/demo/demo01/Demo01ContactForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default {
this.$modal.msgSuccess("新增成功");
this.dialogVisible = false;
this.$emit('success');
// TODO @puhui999:少了一个空格
}finally {
this.formLoading = false;
}
Expand Down
2 changes: 2 additions & 0 deletions src/views/infra/demo/demo02/Demo02CategoryForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<el-input v-model="formData.name" placeholder="请输入名字" />
</el-form-item>
<el-form-item label="父级编号" prop="parentId">
<!-- TODO puhui999:这里下面应该是 2 个空格 -->
<TreeSelect
v-model="formData.parentId"
:options="demo02CategoryTree"
Expand Down Expand Up @@ -71,6 +72,7 @@ export default {
}
}
this.title = "新增示例分类";
// TODO @puhui999:这里少了一个 await
this.getDemo02CategoryTree();
},
/** 提交按钮 */
Expand Down
1 change: 1 addition & 0 deletions src/views/infra/demo/demo02/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>

<!-- TODO puhui999:这里下面应该是 2 个空格 -->
<el-table
v-loading="loading"
:data="list"
Expand Down

0 comments on commit f65a367

Please sign in to comment.