|
@@ -6,6 +6,7 @@ import echarts from 'echarts'
|
|
import './plugins/element.js'
|
|
import './plugins/element.js'
|
|
import AxiosPlugin from './plugins/AxiosPlugin'
|
|
import AxiosPlugin from './plugins/AxiosPlugin'
|
|
import './assets/iconfont/iconfont.css'
|
|
import './assets/iconfont/iconfont.css'
|
|
|
|
+import { Message } from 'element-ui'
|
|
|
|
|
|
import AMap from "vue-amap"
|
|
import AMap from "vue-amap"
|
|
|
|
|
|
@@ -23,6 +24,24 @@ AMap.initAMapApiLoader({
|
|
|
|
|
|
Vue.prototype.$echarts = echarts
|
|
Vue.prototype.$echarts = echarts
|
|
|
|
|
|
|
|
+var MY_MESSAGE_DEFAULT = {
|
|
|
|
+ showClose: true
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var MessageWrapper = function (options) {
|
|
|
|
+ if (typeof (options) === 'object') {
|
|
|
|
+ options = Object.assign({}, MY_MESSAGE_DEFAULT, options)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return Message(options)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+for(var key in Message){
|
|
|
|
+ MessageWrapper[key] = Message[key]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+Vue.prototype.$message = MessageWrapper
|
|
|
|
+
|
|
new Vue({
|
|
new Vue({
|
|
router,
|
|
router,
|
|
store,
|
|
store,
|