增加前端Notify支持

pull/42/head
Lawrence 2021-01-20 20:27:25 +08:00
parent 3bbb39d7b6
commit e4215917fc
1 changed files with 3 additions and 0 deletions

View File

@ -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 : "";