Skip to content

Commit

Permalink
✨ add $message glbal func
Browse files Browse the repository at this point in the history
  • Loading branch information
nicejade committed Dec 19, 2019
1 parent 45a217b commit 447f687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ window.$appTitle = appTitle

/* ------------------------Vue Global Variable------------------------------ */
import { $utils, $document, $lodash } from '@helper'
import { Message } from 'element-ui'
Vue.prototype.$_ = $lodash
Vue.prototype.$utils = $utils
Vue.prototype.$document = $document
Vue.prototype.$message = options => Message(options)

/* ------------------------Vue Global Components------------------------------ */
import { Button, Dropdown, DropdownMenu, DropdownItem, Loading } from 'element-ui'
Expand Down

0 comments on commit 447f687

Please sign in to comment.