perf:refine code
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
				
			|||||||
<html>
 | 
					<html>
 | 
				
			||||||
  <head>
 | 
					  <head>
 | 
				
			||||||
    <meta charset="utf-8">
 | 
					    <meta charset="utf-8">
 | 
				
			||||||
    <title>vue-admin</title>
 | 
					    <title>vue-admin-template</title>
 | 
				
			||||||
  </head>
 | 
					  </head>
 | 
				
			||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
    <div id="app"></div>
 | 
					    <div id="app"></div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -41,7 +41,7 @@
 | 
				
			|||||||
      </el-form-item>
 | 
					      </el-form-item>
 | 
				
			||||||
      <el-form-item>
 | 
					      <el-form-item>
 | 
				
			||||||
        <el-button type="primary" @click="onSubmit">Create</el-button>
 | 
					        <el-button type="primary" @click="onSubmit">Create</el-button>
 | 
				
			||||||
        <el-button>Cancel</el-button>
 | 
					        <el-button @click="onCancel">Cancel</el-button>
 | 
				
			||||||
      </el-form-item>
 | 
					      </el-form-item>
 | 
				
			||||||
    </el-form>
 | 
					    </el-form>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@@ -66,6 +66,12 @@ export default {
 | 
				
			|||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    onSubmit() {
 | 
					    onSubmit() {
 | 
				
			||||||
      this.$message('submit!')
 | 
					      this.$message('submit!')
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    onCancel() {
 | 
				
			||||||
 | 
					      this.$message({
 | 
				
			||||||
 | 
					        message: 'cancel!',
 | 
				
			||||||
 | 
					        type: 'warning'
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user