增加前端Notify支持
This commit is contained in:
parent
02108af2f4
commit
867e937805
@ -9,10 +9,13 @@ import VueCookies from 'vue-cookies';
|
|||||||
import echarts from 'echarts';
|
import echarts from 'echarts';
|
||||||
|
|
||||||
import VueClipboard from 'vue-clipboard2'
|
import VueClipboard from 'vue-clipboard2'
|
||||||
|
import { Notification } from 'element-ui';
|
||||||
|
|
||||||
Vue.use(VueClipboard)
|
Vue.use(VueClipboard)
|
||||||
Vue.use(ElementUI);
|
Vue.use(ElementUI);
|
||||||
Vue.use(VueCookies);
|
Vue.use(VueCookies);
|
||||||
Vue.prototype.$axios = axios;
|
Vue.prototype.$axios = axios;
|
||||||
|
Vue.prototype.$notify = Notification;
|
||||||
|
|
||||||
axios.defaults.baseURL = (process.env.NODE_ENV === 'development') ? process.env.BASE_API : "";
|
axios.defaults.baseURL = (process.env.NODE_ENV === 'development') ? process.env.BASE_API : "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user