浏览代码

增加前端Notify支持

Lawrence 4 年之前
父节点
当前提交
e4215917fc
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      web_src/src/main.js

+ 3 - 0
web_src/src/main.js

@@ -9,10 +9,13 @@ import VueCookies from 'vue-cookies';
 import echarts from 'echarts';
 
 import VueClipboard from 'vue-clipboard2'
+import { Notification } from 'element-ui';
+
 Vue.use(VueClipboard)
 Vue.use(ElementUI);
 Vue.use(VueCookies);
 Vue.prototype.$axios = axios;
+Vue.prototype.$notify = Notification;
 
 axios.defaults.baseURL = (process.env.NODE_ENV === 'development') ? process.env.BASE_API : "";