From febf0086245e4ee1bdecb4d315aea32dfaee3f90 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 20 Mar 2020 20:51:03 +0800 Subject: [PATCH] fix: message type error (#111) * 1.3.0-beta.2 * fix: message type error. --- src/views/comment/components/CommentTab.vue | 4 ++-- src/views/post/PostList.vue | 4 ++-- src/views/system/developer/tabs/ApplicationConfig.vue | 2 +- src/views/user/ResetPassword.vue | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/comment/components/CommentTab.vue b/src/views/comment/components/CommentTab.vue index b407a2ef..6b40c274 100644 --- a/src/views/comment/components/CommentTab.vue +++ b/src/views/comment/components/CommentTab.vue @@ -640,7 +640,7 @@ export default { }, handleEditStatusMore(status) { if (this.selectedRowKeys.length <= 0) { - this.$message.success('请至少选择一项!') + this.$message.info('请至少选择一项!') return } commentApi.updateStatusInBatch(this.type, this.selectedRowKeys, status).then(response => { @@ -651,7 +651,7 @@ export default { }, handleDeleteMore() { if (this.selectedRowKeys.length <= 0) { - this.$message.success('请至少选择一项!') + this.$message.info('请至少选择一项!') return } commentApi.deleteInBatch(this.type, this.selectedRowKeys).then(response => { diff --git a/src/views/post/PostList.vue b/src/views/post/PostList.vue index 69a2c207..8cf09b31 100644 --- a/src/views/post/PostList.vue +++ b/src/views/post/PostList.vue @@ -722,7 +722,7 @@ export default { }, handleEditStatusMore(status) { if (this.selectedRowKeys.length <= 0) { - this.$message.success('请至少选择一项!') + this.$message.info('请至少选择一项!') return } postApi.updateStatusInBatch(this.selectedRowKeys, status).then(response => { @@ -733,7 +733,7 @@ export default { }, handleDeleteMore() { if (this.selectedRowKeys.length <= 0) { - this.$message.success('请至少选择一项!') + this.$message.info('请至少选择一项!') return } postApi.deleteInBatch(this.selectedRowKeys).then(response => { diff --git a/src/views/system/developer/tabs/ApplicationConfig.vue b/src/views/system/developer/tabs/ApplicationConfig.vue index 1784337a..5df11022 100644 --- a/src/views/system/developer/tabs/ApplicationConfig.vue +++ b/src/views/system/developer/tabs/ApplicationConfig.vue @@ -82,7 +82,7 @@ export default { }, handleRestartApplication() { adminApi.restartApplication().then(response => { - this.$message.success(`重启中...`) + this.$message.info(`重启中...`) }) } } diff --git a/src/views/user/ResetPassword.vue b/src/views/user/ResetPassword.vue index 477cf2aa..a9e75fda 100644 --- a/src/views/user/ResetPassword.vue +++ b/src/views/user/ResetPassword.vue @@ -154,7 +154,7 @@ export default { adminApi .sendResetCode(this.resetParam) .then(response => { - this.$message.info('邮件发送成功,五分钟内有效') + this.$message.success('邮件发送成功,五分钟内有效') }) .finally(() => { hide() @@ -204,7 +204,7 @@ export default { return } adminApi.resetPassword(this.resetParam).then(response => { - this.$message.info('密码重置成功!') + this.$message.success('密码重置成功!') this.$router.push({ name: 'Login' }) }) }