From 447f6872308ecd9b5d34b8cfc8114db0fea9d8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JadeYang=28=E6=9D=A8=E7=90=BC=E7=92=9E=29?= Date: Thu, 19 Dec 2019 23:48:39 +0800 Subject: [PATCH] :sparkles: add $message glbal func --- src/global.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/global.js b/src/global.js index 0ec8a3a..ab89906 100644 --- a/src/global.js +++ b/src/global.js @@ -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'