添加全局提示插件

This commit is contained in:
chenghx
2018-08-03 16:07:09 +08:00
parent 4b8ad9e558
commit 6bc0f1f074
3 changed files with 4 additions and 1 deletions

View File

@@ -121,6 +121,7 @@ export default {
const result = res.data
if (result.code >= 0) {
this.$router.push('/dashboard/workplace')
this.$message.success(result.message, 3)
} else {
this.error = result.message
}