Skip to content

Commit

Permalink
修改代码模版
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbbbbbbbbba committed Oct 8, 2020
1 parent 124fea9 commit a5683e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codegen_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ var viewIndexTmpl = template.Must(template.New("index.vue").Parse(`
</el-pagination>
</el-col>
<!--新增界面-->
<el-dialog title="新增" :visible.sync="addFormVisible" :close-on-click-modal="false">
<el-form :model="addForm" label-width="80px" ref="addForm">
Expand Down Expand Up @@ -307,7 +306,6 @@ var viewIndexTmpl = template.Must(template.New("index.vue").Parse(`
<script>
export default {
name: "List",
data() {
return {
results: [],
Expand Down Expand Up @@ -339,6 +337,7 @@ var viewIndexTmpl = template.Must(template.New("index.vue").Parse(`
this.results = data.results
this.page = data.page
} catch (e) {
this.$notify.error({ title: '错误', message: e || e.message })
} finally {
this.listLoading = false
}
Expand Down

0 comments on commit a5683e1

Please sign in to comment.