|
|
@@ -16,6 +16,7 @@ import 'element-ui/lib/theme-chalk/index.css'
|
|
|
import '../main.less'
|
|
|
import { format } from 'date-fns'
|
|
|
import zh from 'date-fns/locale/zh_cn'
|
|
|
+import vuex from '../vuex';
|
|
|
|
|
|
VueAMap.initAMapApiLoader({
|
|
|
key: 'bf91055058a47a7dc387e40ab6256a5f',
|
|
|
@@ -178,8 +179,12 @@ Vue.prototype.getHaleInfo = function(serviceName, methodName, params, type, newk
|
|
|
"methodName": methodName,
|
|
|
"params": params
|
|
|
}
|
|
|
- console.log(data)
|
|
|
- axios.post(this.$handleUrl, data).then(res => {
|
|
|
+ console.log(store.state.requireToken)
|
|
|
+ axios.post(this.$handleUrl, data, {
|
|
|
+ headers: {
|
|
|
+ 'token': store.state.requireToken
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
if (res.data.success) {
|
|
|
var jsonp = {}
|
|
|
var list = []
|
|
|
@@ -402,4 +407,4 @@ new Vue({
|
|
|
template: `<keep-alive include="*">
|
|
|
<router-view></router-view>
|
|
|
</keep-alive>`
|
|
|
-});
|
|
|
+});
|