Commit a17c1eb2 authored by Pan's avatar Pan Committed by 花裤衩

perf:refine code

parent 37085484
......@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>vue-admin</title>
<title>vue-admin-template</title>
</head>
<body>
<div id="app"></div>
......
......@@ -41,7 +41,7 @@
</el-form-item>
<el-form-item>
<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>
</div>
......@@ -66,6 +66,12 @@ export default {
methods: {
onSubmit() {
this.$message('submit!')
},
onCancel() {
this.$message({
message: 'cancel!',
type: 'warning'
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment