Skip to content

Commit

Permalink
refactor(toast.js): 删除局部变量
Browse files Browse the repository at this point in the history
  • Loading branch information
woai3c committed Jan 16, 2021
1 parent 41b777b commit 062c7d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/utils/toast.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Message } from 'element-ui'

export default function toast(message = '', type = 'error', duration = 1500) {
const data = {
Message({
message,
type,
duration,
}

Message(data)
})
}

0 comments on commit 062c7d4

Please sign in to comment.