diff --git a/index.html b/index.html index 9b30275..4c02b39 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - vue-admin + vue-admin-template
diff --git a/src/views/form/index.vue b/src/views/form/index.vue index 9ccd889..bfec9a2 100644 --- a/src/views/form/index.vue +++ b/src/views/form/index.vue @@ -41,7 +41,7 @@ Create - Cancel + Cancel @@ -66,6 +66,12 @@ export default { methods: { onSubmit() { this.$message('submit!') + }, + onCancel() { + this.$message({ + message: 'cancel!', + type: 'warning' + }) } } }